/*
Theme Name: WIP Studio
Theme URI: https://wipstudio.work
Description: The WIP Studio website: homepage sections as editable block patterns, brand colours and type, and the links to sign-up and sign-in in the app. Edit everything in Appearance → Editor.
Version: 1.5.1
Requires at least: 6.4
Requires PHP: 7.4
Author: WIP Studio
Text Domain: wip-studio
License: Proprietary
*/

/* Brand touches theme.json can't express. Content blocks use these classes (Advanced → Additional CSS class). */

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; }

/* Header: sticky with a soft blur */
/* The blur sits on a pseudo-element: a backdrop-filter on the header itself would trap the full-screen mobile menu inside it. */
.wips-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--border); }
.wips-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); }
.wips-header .wips-mobile-only { display: none; }
.admin-bar .wips-header { top: 32px; }
.wips-logo img { width: 32px; height: 32px; }
.wips-header .wp-block-site-title a { color: var(--wp--preset--color--text); text-decoration: none; font-weight: 800; }

/* Hero */
.wips-hero { position: relative; overflow: hidden; text-align: center; }
.wips-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 720px; background-image: linear-gradient(var(--wp--preset--color--border) 1px, transparent 1px), linear-gradient(90deg, var(--wp--preset--color--border) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); opacity: 0.7; z-index: -1; pointer-events: none; }
.wips-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--wp--preset--color--brand-soft); color: var(--wp--preset--color--brand); font-size: 14px; font-weight: 600; }
.wips-grad-text, .wips-grad-text strong, .wips-grad-text mark { color: var(--wp--preset--color--brand) !important; background: none; }
.wips-lead { color: var(--wp--preset--color--text-2); }
.wips-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--brand); margin-bottom: 0 !important; }
.wips-note { color: var(--wp--preset--color--text-3); font-size: 14px; }

/* Product screenshots */
.wips-shot img { border-radius: 14px; border: 1px solid var(--wp--preset--color--border); box-shadow: 0 30px 70px -34px rgba(22, 24, 29, 0.38), 0 8px 24px -14px rgba(22, 24, 29, 0.16); }

/* Ticked lists */
.wips-checks ul, ul.wips-checks { list-style: none; padding-left: 0; }
.wips-checks li { position: relative; padding-left: 30px; margin: 8px 0; color: var(--wp--preset--color--text-2); }
.wips-checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--wp--preset--color--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Strip of key facts */
.wips-strip ul, ul.wips-strip { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; font-weight: 600; color: var(--wp--preset--color--text-2); }
ul.wips-strip li { padding-left: 26px; margin: 0; }
ul.wips-strip li::before { background: var(--wp--preset--color--brand); top: 3px; width: 18px; height: 18px; }

/* Cards */
.wips-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 24px !important; height: 100%; }
.wips-card h3 { margin-top: 0; }
.wips-card p { color: var(--wp--preset--color--text-2); font-size: 15px; }
.wips-was { display: inline-block; font-size: 12.5px !important; font-weight: 500; color: var(--wp--preset--color--text-3) !important; background: rgba(0,0,0,.045); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px !important; }
.wips-was::after { content: " \2192"; }
.wips-alt { background: var(--wp--preset--color--bg-alt); }

/* Pricing */
.wips-plan { display: flex; flex-direction: column; }
.wips-plan .wp-block-list { flex: 1; }
.wips-plan.wips-best { border: 2px solid var(--wp--preset--color--ink); position: relative; }
.wips-plan.wips-best::before { content: 'Most popular'; position: absolute; top: -13px; left: 24px; background: var(--wp--preset--color--brand-2); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.wips-price { font-size: 40px !important; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 !important; }
.wips-price small, .wips-price em { font-size: 15px; font-weight: 500; font-style: normal; color: var(--wp--preset--color--text-3); letter-spacing: 0; }

/* FAQ */
.wips-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: 18px 0; }
.wips-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wips-faq summary::-webkit-details-marker { display: none; }
.wips-faq summary::after { content: '+'; color: var(--wp--preset--color--brand); font-size: 22px; line-height: 1; }
.wips-faq details[open] summary::after { content: '–'; }
.wips-faq details p { color: var(--wp--preset--color--text-2); margin: 10px 0 0; }

/* Final call to action */
.wips-cta { background: var(--wp--preset--color--ink); border-radius: 22px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.wips-cta::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--wp--preset--color--brand-2); }
.wips-cta h2, .wips-cta p { color: #fff; }
.wips-cta .wp-block-button__link { background: var(--wp--preset--color--brand-2) !important; color: #16181d !important; }
.wips-cta .wp-block-button__link:hover { background: #fff !important; }

/* Footer */
.wips-footer { color: var(--wp--preset--color--text-3); font-size: 14px; border-top: 1px solid var(--wp--preset--color--border); }
.wips-footer a { color: var(--wp--preset--color--text-2); text-decoration: none; }

/* Header on small screens: logo, menu button and one call to action */
.wips-header .wp-block-site-title { white-space: nowrap; }
.wips-header .wips-logo { flex-shrink: 0; }
.wips-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
  .wips-header .wp-block-button.is-style-outline { display: none; }
  .wips-header .wp-block-button__link { padding: 9px 14px; font-size: 14px; }
  .wips-header .wp-block-site-title { font-size: 16px !important; }
  .wips-header .wips-logo img { width: 28px !important; height: 28px !important; }
  .wips-header .wp-block-group { gap: 10px; }
  .wips-header .wp-block-navigation { margin-left: 6px; }
}

@media (max-width: 781px) {
  .wips-hero::before { height: 520px; }
  .wips-price { font-size: 34px !important; }
  .admin-bar .wips-header { top: 46px; }
}

/* ---- Feature slider (patterns/slider.php; behaviour in functions.php) -------------------------- */
.wips-slider-section { background: #16181d; color: #fff; }
.wips-slider-section h2, .wips-slider-section h3 { color: #fff; }
.wips-slider-section .wips-eyebrow { color: #fb923c; }
.wips-slider { position: relative; margin-top: 40px; }
.wips-slides { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0 !important; overscroll-behavior-x: contain; }
.wips-slides::-webkit-scrollbar { display: none; }
.wips-slides > .wips-slide { flex: 0 0 100% !important; min-width: 100%; margin: 0 !important; padding: 8px 4px; scroll-snap-align: start; box-sizing: border-box; }
.wips-slide p { color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.6; }
.wips-slide .wips-checks li { color: rgba(255,255,255,.82); }
.wips-slide .wips-checks li::before { background: #fb923c; }
.wips-slide-tag { display: inline-block; font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fb923c !important; background: rgba(249,115,22,.14); border-radius: 999px; padding: 5px 12px; margin: 0 0 14px !important; }
.wips-slide-title { font-size: clamp(26px, 3.2vw, 38px) !important; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px !important; text-wrap: balance; }
.wips-slide .wips-shot img { border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.wips-slider-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.wips-arrow, .wips-pause { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: 600 18px/1 inherit; cursor: pointer; display: grid; place-items: center; }
.wips-pause { margin-left: 6px; }
.wips-arrow:hover, .wips-pause:hover { background: rgba(255,255,255,.14); }
.wips-arrow:focus-visible, .wips-pause:focus-visible, .wips-dot:focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }
.wips-dots { display: flex; gap: 8px; }
.wips-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .25s, background .25s; }
.wips-dot[aria-current="true"] { width: 28px; background: #f97316; }
/* The app slide: three phones, the middle one in front. */
.wips-phones { position: relative; height: 520px; display: flex; justify-content: center; align-items: center; }
.wips-phone { position: absolute; width: 210px; padding: 7px; border-radius: 30px; background: #2a2d36; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px rgba(0,0,0,.5); }
.wips-phone img { display: block; width: 100%; border-radius: 23px; }
.wips-phone-0 { transform: translateX(-62%) rotate(-7deg) scale(.88); opacity: .9; }
.wips-phone-1 { z-index: 2; transform: translateY(-4px); }
.wips-phone-2 { transform: translateX(62%) rotate(7deg) scale(.88); opacity: .9; }

/* Store badges (functions.php wips_app_badges): official artwork, same visible height. */
.wips-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; }
.wips-badge { display: inline-flex; line-height: 0; }
.wips-badge-play img { height: 62px; width: auto; margin: -9px -8px; } /* Google's badge has its own clear space */
.wips-badge-apple img { height: 42px; width: auto; }
.wips-soon { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 9px; border: 1px dashed currentColor; font-size: 13.5px; font-weight: 600; opacity: .7; }

/* ---- Footer: brand · Product · Support · Get the app ------------------------------------------ */
.wips-foot-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--wp--preset--color--text) !important; letter-spacing: -.02em; }
.wips-foot-logo img { width: 32px; height: 32px; border-radius: 9px; }
.wips-foot-brand p { margin: 14px 0 0; line-height: 1.6; max-width: 340px; }
.wips-foot-brand strong { color: var(--wp--preset--color--text); }
.wips-foot-title { font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--text) !important; margin: 4px 0 14px !important; }
ul.wips-foot-links { list-style: none; padding: 0; margin: 0; }
.wips-foot-links li { margin: 0 0 10px; }
.wips-footer .wips-foot-links a:hover, .wips-footer .wips-foot-logo:hover span { color: var(--wp--preset--color--brand); }
.wips-footer .wips-badges { margin-top: 14px; }
.wips-foot-copy { font-size: 13px; }
@media (max-width: 781px) {
  .wips-foot-cols { flex-wrap: wrap !important; }
  .wips-foot-cols > .wp-block-column { flex-basis: 100% !important; }
  .wips-foot-cols > .wp-block-column:nth-child(2), .wips-foot-cols > .wp-block-column:nth-child(3) { flex-basis: calc(50% - 20px) !important; }
  .wips-phones { height: 420px; }
  .wips-phone { width: 170px; }
  .wips-slide .wips-shot img { border-radius: 10px; }
}

/* Pricing: Yearly / Monthly switch (functions.php swaps the prices and the buttons' interval). */
.wips-billing-toggle { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 28px auto 0; padding: 4px; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; }
.wips-billing-toggle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: var(--wp--preset--color--text-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.wips-billing-toggle button span { font-weight: 500; font-size: 12px; color: #15803d; margin-left: 4px; }
.wips-billing-toggle button[aria-pressed="true"] { background: var(--wp--preset--color--text); color: #fff; }
.wips-billing-toggle button[aria-pressed="true"] span { color: #86efac; }
.wips-price .wips-monthly, [data-interval="month"] .wips-price .wips-yearly { display: none; }
[data-interval="month"] .wips-price .wips-monthly { display: inline; }
.wips-terms { max-width: 760px; margin: 40px auto 0 !important; font-size: 14.5px; color: var(--wp--preset--color--text-2); }
.wips-terms li { margin: 6px 0; }

/* Text pages (Support, User guide, FAQ, Privacy Policy and any other page): readable sizes and spacing. */
.wips-page h1.wp-block-post-title { font-size: clamp(32px, 5vw, 44px) !important; margin-bottom: 12px; }
.wips-page .wp-block-post-content h2 { font-size: clamp(22px, 3vw, 26px); letter-spacing: -0.01em; margin: 2.2em 0 0.5em; }
.wips-page .wp-block-post-content h3 { font-size: 18px; margin: 1.6em 0 0.35em; }
.wips-page .wp-block-post-content h2 + h3 { margin-top: 0.8em; }
.wips-page .wp-block-post-content p, .wips-page .wp-block-post-content li { line-height: 1.65; }
.wips-page .wp-block-post-content li { margin: 0.25em 0; }
.wips-page .wp-block-post-content li.sub { margin-left: 1.5em; list-style-type: circle; }
.wips-page .wp-block-post-content hr { border: 0; border-top: 1px solid var(--wp--preset--color--border); margin: 2.5em 0 1.5em; }
.wips-page .wp-block-post-content code { font-size: 0.9em; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 4px; }
.wips-page .wp-block-post-content blockquote { border-left: 3px solid var(--wp--preset--color--border); margin: 1em 0; padding: 2px 0 2px 16px; }

/* ---- Phones ------------------------------------------------------------------------------
   Headings break into even lines; text always comes before its screenshot; screenshots are
   zoomed into the part that matters so they stay readable; cards are more compact. */
h1, h2, h3, .wp-block-heading { text-wrap: balance; }
.wips-lead, .wips-hero p { text-wrap: pretty; }

@media (max-width: 781px) {
  /* Text first, then the screenshot, in every feature row. */
  .wp-block-columns > .wp-block-column:has(> .wips-shot) { order: 2; }

  /* Zoom feature screenshots in (square crop) on the most useful part of each one. */
  .wp-block-column > .wips-shot img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 20% top; }
  .wips-shot img[src*="ticket"] { object-position: 78% top; }
  .wips-shot img[src*="portfolio"] { object-position: 32% top; }
  .wips-shot img[src*="overview"] { object-position: 32% top; }
  .wips-shot img[src*="transfers"] { object-position: 24% top; }
  .wips-shot img[src*="calendar"] { object-position: 40% top; }
  /* "Who it's for" cards repeat the feature screenshots above: skip them on phones. */
  .wips-card .wips-shot { display: none; }

  /* Hero: a little less space, a tighter screenshot frame. */
  .wips-hero { padding-top: 40px !important; }
  .wips-hero .wips-shot { margin-top: 32px !important; }
  .wips-hero .wips-shot img { border-radius: 10px; }

  /* Feature rows: closer together. */
  #features .wp-block-columns { margin-top: 64px !important; }
  .wp-block-columns { gap: 22px !important; }

  /* Compact cards. */
  .wips-card:not(.wips-plan) { padding: 16px 18px !important; border-radius: 12px; }
  .wips-card:not(.wips-plan) h3 { font-size: 16px; margin-bottom: 4px; }
  .wips-card:not(.wips-plan) p { font-size: 14.5px; margin: 0; }
  .wips-card .wips-was { margin-bottom: 8px !important; }
  .wp-block-columns.alignwide, .wp-block-group.alignwide { --wp--style--block-gap: 12px; }
  .wp-block-group.alignwide.is-layout-grid { gap: 12px !important; }

  /* Section headings and leads. */
  .wips-lead.has-large-font-size { font-size: 16.5px !important; }
  .wips-faq summary { font-size: 16px; }
  .wips-cta { border-radius: 16px; }
}

@media (max-width: 480px) {
  .wips-strip ul, ul.wips-strip { gap: 8px 18px; font-size: 14.5px; }
  .wips-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .wips-hero .wp-block-button { width: 100%; }
  .wips-hero .wp-block-button__link { width: 100%; text-align: center; }
}

/* ---- Phone header and menu ------------------------------------------------------------------
   Logo on the left; "Get started" and the menu button on the right. The menu opens full screen with
   large links, Sign in and My account. */
@media (max-width: 781px) {
  .wips-header > .wp-block-group > .wp-block-group.alignwide { flex-wrap: nowrap; gap: 10px; }
  .wips-header .wp-block-group.alignwide > .wp-block-group:first-child { display: contents; }
  .wips-header .wp-block-group.alignwide > .wp-block-group:first-child > .wp-block-group { order: 1; margin-right: auto; }
  .wips-header .wp-block-buttons { order: 2; }
  .wips-header .wp-block-navigation { order: 3; margin-left: 2px !important; }
  .wips-header .wc-block-customer-account { display: none; }

  .wips-header .wp-block-navigation__responsive-container-open { padding: 8px; margin-right: -8px; }
  .wips-header .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
  .wips-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--wp--preset--color--text); padding: 18px 20px 32px; }
  .wips-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; align-items: stretch; }
  .wips-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
  .wips-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--border); }
  .wips-header .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 16px 2px !important; font-size: 21px; font-weight: 600; color: var(--wp--preset--color--text) !important; }
  .wips-header .is-menu-open .wips-mobile-only { display: flex; }
  .wips-header .is-menu-open .wips-mobile-only .wp-block-navigation-item__content { font-size: 17px; font-weight: 500; color: var(--wp--preset--color--text-2) !important; }
  .wips-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

  /* Hero headline: one sentence per line. */
  .wips-hero h1 .wips-line, .wips-hero h1 .wips-grad-text { display: block; }
  .wips-hero h1 br { display: none; }
}
