/* Flip It Studios — static rebuild of the original Wix design */
:root {
  --blue: #2596BC;
  --blue-text: #3D9BE9;
  --orange: #FBAC14;
  --orange-dark: #F8AD12;
  --coral: #D56650;
  --red: #E0282E;
  --ink: #222;
  --white: #fff;
  --header-h: 74px;
  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --font-title: "Open Sans", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); height: var(--header-h); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; }
.brand img { width: 154px; height: auto; }
.site-nav { margin-left: auto; margin-right: 150px; }
.site-nav > ul { display: flex; gap: 0; }
.site-nav a { display: block; padding: 10px 16px; font-family: var(--font-mono); font-size: 20px; text-transform: uppercase; text-decoration: none; color: var(--orange); font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 190px; background: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { text-transform: none; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--blue); border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 795px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; background: #F26C86; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-content { position: relative; width: 50%; text-align: center; color: var(--white); padding: 40px 20px; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 90px; line-height: 1.15; letter-spacing: 9px; text-transform: uppercase; }
.tagline { margin-top: 44px; font-family: var(--font-head); font-weight: 200; font-size: 24px; line-height: 1.45; }
.social { display: flex; justify-content: center; gap: 22px; margin-top: 64px; }
.social a { display: block; width: 30px; height: 30px; color: var(--white); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social a:hover { opacity: .8; }

/* Section titles */
.section-title { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.2; text-transform: uppercase; color: var(--blue); text-align: center; }

/* Apps */
.apps { max-width: 980px; margin: 0 auto; padding: 60px 20px 70px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 38px; margin-top: 50px; }
.card { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 306 / 155; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 18px 18px; }
.card h3 { font-family: var(--font-title); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: 1.6px; color: var(--blue); }
.card .status { margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--orange-dark); }
.card p:not(.status) { margin-top: 12px; color: var(--blue-text); font-size: 14px; line-height: 1.65; }
.btn { align-self: flex-end; margin-top: auto; padding: 10px 22px; border: 0; background: var(--orange); color: var(--white); font: 400 14px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.card-body .btn { margin-top: 22px; }
.btn:hover { background: var(--blue); }

/* Story */
.story { background: var(--blue); color: var(--white); }
.story-inner { max-width: 980px; margin: 0 auto; padding: 70px 20px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.story .section-title { color: var(--white); text-align: center; margin-top: 20px; }
.story-side img { margin: 40px auto 0; width: 415px; }
.story-text p { font-size: 18px; line-height: 1.75; letter-spacing: .4px; }
.story-text p + p { margin-top: 1.6em; }

/* Support */
.support { max-width: 980px; margin: 0 auto; padding: 60px 20px 40px; }
.support-intro { margin-top: 36px; text-align: center; color: var(--orange); font-weight: 700; font-size: 20px; line-height: 1.6; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 40px; }
.tile { position: relative; padding-bottom: 70px; }
.tile > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-box { position: absolute; left: 30px; right: -12px; bottom: 0; background: var(--orange); color: var(--white); padding: 14px 18px 16px; }
.tile-box h3 { font-weight: 400; font-size: 17px; }
.tile-box p { font-size: 13px; }
.btn-outline { display: block; width: fit-content; margin: 12px 0 0 auto; padding: 6px 18px; border: 2px solid var(--white); background: transparent; color: var(--white); font: 700 15px/1.3 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
a.btn-outline:hover, button.btn-outline:hover { background: var(--white); color: var(--orange); }
.btn-outline.is-static { cursor: default; }

/* Contact */
.contact { padding-top: 50px; }
.contact-band { background: var(--blue); color: var(--white); margin-top: 30px; }
.contact-inner { max-width: 980px; margin: 0 auto; padding: 50px 20px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-col h3 { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 24px; }
.contact-col:first-child h3 { text-align: center; }
.contact-col p, .contact-col address { font-family: var(--font-head); font-weight: 200; font-size: 15px; letter-spacing: .3px; line-height: 1.8; }
.contact-col p + p, .contact-col p + address { margin-top: 14px; }
.contact-col a { color: var(--white); }
.contact-col strong { font-weight: 700; }
.btn-email { display: block; width: fit-content; margin: 26px auto 0; padding: 10px 34px; border: 1px solid var(--white); color: var(--white) !important; text-decoration: none; font: 400 16px/1.3 var(--font-mono); letter-spacing: 1px; }
.btn-email:hover { background: var(--white); color: var(--blue) !important; }
.contact .social { justify-content: flex-start; margin-top: 30px; }
.contact .social a { width: 26px; height: 26px; }

/* Footer */
.site-footer { padding: 26px 20px 30px; text-align: center; color: var(--blue); font-size: 15px; }
.site-footer a { color: var(--blue); }

/* Popups */
.popup { border: 0; padding: 40px 44px 34px; max-width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.popup::backdrop { background: rgba(213, 102, 80, .9); }
.popup-close { position: fixed; top: 16px; right: 20px; width: 40px; height: 40px; padding: 6px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.popup-close svg { width: 100%; height: 100%; fill: currentColor; }
.popup-row { display: flex; gap: 26px; align-items: flex-start; }
.popup h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.popup p { font-size: 14px; line-height: 1.6; }
.popup p + p { margin-top: 12px; }
.popup a { color: #1d3c8f; font-weight: 700; }
.popup-feature .popup-row > img { width: 150px; flex: none; border-radius: 14px; }
.popup-tagline { margin-top: 30px !important; text-align: center; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 20px !important; text-transform: uppercase; }
.popup-soon { max-width: min(640px, calc(100vw - 32px)); padding: 28px 30px; }
.popup-soon .popup-row { align-items: center; }
.soon-text { flex: 1; text-align: center; }
.soon-text img { width: 200px; margin: 0 auto 12px; }
.soon-text h2 { font-size: 18px; margin-bottom: 4px; }
.soon-img { width: 55%; flex: none; aspect-ratio: 306 / 155; object-fit: cover; }
.popup-tip { text-align: center; max-width: min(560px, calc(100vw - 32px)); }
.popup-tip h2 { color: var(--blue); }
.tip-row { display: flex; justify-content: center; gap: 30px; margin-top: 22px; }
.tip-row figure { margin: 0; width: 180px; }
.tip-row img { width: 100%; border: 1px solid #e5e5e5; }
.tip-row figcaption { margin-top: 10px; font-size: 15px; }

/* Tablet */
@media (max-width: 1000px) {
  .site-nav { margin-right: 0; }
  .site-nav a { font-size: 17px; padding: 10px 12px; }
  .hero { min-height: 640px; }
  .hero h1 { font-size: 64px; letter-spacing: 6px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { gap: 22px; }
  .tile-box { left: 14px; right: -6px; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .brand img { width: 128px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); box-shadow: 0 8px 16px rgba(0,0,0,.1); margin: 0; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 8px 0 14px; }
  .site-nav a { padding: 12px 24px; font-size: 16px; }
  .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 18px; }
  .hero { min-height: 560px; justify-content: center; }
  .hero-bg { object-position: 22% 0; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: 46px; letter-spacing: 4px; }
  .tagline { margin-top: 26px; font-size: 20px; }
  .social { margin-top: 36px; }
  .section-title { font-size: 30px; }
  .cards, .tiles { grid-template-columns: 1fr; }
  .cards { max-width: 420px; margin-left: auto; margin-right: auto; }
  .tiles { max-width: 380px; margin-left: auto; margin-right: auto; gap: 30px; }
  .tile-box { right: 0; }
  .story-inner, .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .story-inner { padding: 50px 20px 60px; }
  .story-side img { margin-top: 26px; width: 300px; }
  .story-text p { font-size: 16px; }
  .support-intro { font-size: 17px; }
  .contact-col h3 { text-align: center; }
  .contact-col { text-align: center; }
  .contact .social { justify-content: center; }
  .popup { padding: 34px 22px 26px; }
  .popup-row { flex-direction: column; align-items: center; text-align: center; }
  .popup-soon .popup-row { flex-direction: column-reverse; }
  .soon-img { width: 100%; }
  .tip-row { gap: 14px; }
  .tip-row figure { width: 46%; }
}

/* Secondary pages (privacy policy, 404) */
.page { max-width: 980px; min-height: 55vh; margin: 0 auto; padding: 70px 20px 80px; text-align: center; }
.page p { margin-top: 30px; font-size: 17px; }
.page-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.page-links .btn { text-decoration: none; }
