/* Twixit — a quiet, product-led visual system. All assets stay local. */
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-wght-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #172328;
  --ink-soft: #435158;
  --night: #111b25;
  --night-deep: #0c141d;
  --paper: #f8f9f6;
  --white: #fff;
  --wash: #eef3ef;
  --line: #dce5df;
  --violet: #704cea;
  --violet-dark: #5435bd;
  --mint: #a9ead4;
  --peach: #ffc6a8;
  --focus: #704cea;
  --radius: 24px;
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-in both page-out; }
::view-transition-new(root) { animation: 280ms ease-out both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-7px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } }
html.no-smooth-scroll { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) {
  body { animation: 280ms ease-out both page-in; }
  main#main { transition: opacity 190ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1); }
  main#main.page-exit { opacity: 0; transform: translateY(-12px); }
  main#main.page-enter { opacity: 0; transform: translateY(18px); }
  .scroll-reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
  .scroll-reveal.is-visible, .scroll-reveal:focus-within { opacity: 1; transform: none; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.68 "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--violet-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
main#main:focus { outline: none; }
::selection { color: var(--night); background: var(--mint); }
h1, h2, h3 { margin: 0 0 .55em; font-weight: 700; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.3vw, 6rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -.035em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .91em; }
:not(pre) > code { padding: .1em .35em; border-radius: 6px; background: #e9ecec; overflow-wrap: anywhere; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--ink-soft); }
.small { font-size: .82rem; }
.lead { max-width: 47rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
.center { margin-inline: auto; text-align: center; }
.eyebrow { margin-bottom: 1.15rem; color: var(--violet-dark); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; margin: 0 10px 3px 0; background: currentColor; }

.skip { position: absolute; z-index: 100; left: 20px; top: -70px; padding: 10px 16px; border-radius: 8px; background: white; color: var(--night); font-weight: 700; }
.skip:focus { top: 12px; }

/* Shared navigation */
.site-header { position: relative; z-index: 5; background: #fffefa; color: var(--night); border-bottom: 1px solid #e2e9e5; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--night); font-weight: 800; font-size: 1.42rem; letter-spacing: -.045em; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.nav ul { position: relative; isolation: isolate; display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); margin: 0; padding: 0; list-style: none; }
.nav ul::before { content: ""; position: absolute; z-index: 0; left: 0; top: var(--glide-y, 0px); width: var(--glide-width, 0px); height: var(--glide-height, 0px); border-radius: 999px; background: #eeeafb; opacity: 0; transform: translateX(var(--glide-x, 0px)); pointer-events: none; transition: transform 380ms cubic-bezier(.22, 1, .36, 1), width 380ms cubic-bezier(.22, 1, .36, 1), top 250ms ease, height 250ms ease, opacity 180ms ease; }
.nav ul.has-glider::before { opacity: 1; }
.nav li { position: relative; z-index: 1; }
.nav a:not(.brand) { display: inline-block; color: #405057; font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .25s ease, border-color .25s ease; }
.nav a:not(.brand):hover, .nav a[aria-current] { color: var(--violet-dark); }
.nav li:last-child a { padding: 9px 17px; border: 1px solid #d7dedb; border-radius: 999px; }
.nav li:last-child a:hover, .nav li:last-child a[aria-current] { border-color: #b4a5ef; color: var(--violet-dark); }

/* Light brand surfaces */
.on-brand {
  color: var(--night);
  background: radial-gradient(ellipse 59% 85% at 80% 14%, rgba(177,160,235,.36), transparent 72%),
              radial-gradient(ellipse 45% 70% at 96% 94%, rgba(131,213,191,.36), transparent 68%),
              linear-gradient(135deg, #fffdf9, #eff5f2 58%, #f7f0ed);
}
.on-brand a { color: #5136af; }
.on-brand .lead, .on-brand .muted { color: #40535b; }
.on-brand .eyebrow { color: #6243bc; }
.on-brand code { color: var(--night); background: rgba(255,255,255,.55); border: 1px solid #dce7e0; }

/* Home: an editorial headline with the app in view */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 102px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(43,75,76,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(43,75,76,.1) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, transparent 20%, black 100%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(34px, 5vw, 88px); min-height: 560px; }
.hero .copy { position: relative; z-index: 2; padding-bottom: 30px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 9px 15px; border: 1px solid #d1ded8; border-radius: 999px; color: #42585d; background: rgba(255,255,255,.5); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(169,234,212,.16); }
.hero h1 { max-width: 700px; margin-bottom: .28em; font-size: clamp(3.5rem, 5.5vw, 5.7rem); line-height: 1.03; }
.hero h1 em { font-style: normal; background: linear-gradient(105deg, #08796d 0%, #4564bb 49%, #c65e3d 100%); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero .lead { max-width: 36rem; margin-bottom: 1.8em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.cta-row.centered { justify-content: center; }
.hero .cta-row { flex-direction: column; align-items: flex-start; gap: 17px; }
.hero .small { margin-top: 20px; color: #52656a; }
.soon { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; min-height: 74px; padding: 10px 24px 10px 11px; border: 1px solid transparent; border-radius: 18px; background: linear-gradient(145deg, #111b25, #203143) padding-box, linear-gradient(120deg, #9478ed, #a8e5d6) border-box; color: white; box-shadow: 0 16px 34px rgba(22,42,51,.17), inset 0 1px 0 rgba(255,255,255,.12); }
.soon img { flex: none; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 12px rgba(15,24,46,.2); }
.soon-label { display: grid; gap: 1px; line-height: 1.18; text-align: left; }
.soon-label span { color: #c9d7de; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.soon-label strong { color: white; font-size: 1.05rem; font-weight: 800; letter-spacing: -.035em; }
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { width: auto; height: 50px; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.hero .text-link { color: var(--night); font-size: .88rem; }
.hero .text-link span { margin-left: 4px; color: #6543bd; }
.stage { position: relative; z-index: 2; align-self: end; padding: 66px 0 65px 8%; isolation: isolate; }
.stage-glow { position: absolute; z-index: -2; inset: 2% -15% 3% -10%; border-radius: 50%; background: radial-gradient(circle, rgba(150,229,211,.48), rgba(125,87,209,.19) 40%, transparent 70%); filter: blur(24px); }
.stage .main { position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 17px; box-shadow: 0 40px 90px rgba(35,54,53,.22); transform: rotate(-2deg); }
.stage .fan { position: absolute; z-index: 3; width: 21%; overflow: hidden; border: 2px solid rgba(255,255,255,.9); border-radius: 11px; box-shadow: 0 20px 50px rgba(34,54,51,.25); }
.stage .fan-a { left: -4%; bottom: 2%; transform: rotate(-12deg); }
.stage .fan-b { left: 13%; bottom: -5%; width: 19%; transform: rotate(7deg); }
.stage .fan-c { right: -7%; top: 2%; width: 23%; transform: rotate(12deg); }
.stage-label { position: absolute; z-index: 4; right: -4%; bottom: 7%; padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(17,27,37,.8); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .05em; backdrop-filter: blur(12px); }
.stage-label span { color: var(--mint); }
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid #d5e1db; color: #52676a; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Sections and image presentation */
section { padding: clamp(68px, 8vw, 112px) 0; }
.alt { background: var(--wash); }
.section-head { max-width: 780px; margin: 0 auto clamp(32px, 4vw, 58px); text-align: center; }
.section-head h2, .section-head .lead { margin-inline: auto; }
.page-home main > section:not(.hero) > .wrap { max-width: 1140px; }
.page-home .band .wrap { text-align: center; }
.page-home .band p { margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2.3vw, 28px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 44px rgba(20,43,42,.035); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .6em; }
.shot { overflow: hidden; border: 1px solid rgba(29,43,43,.08); border-radius: 18px; background: white; box-shadow: 0 20px 50px rgba(20,43,42,.13); }
figure { margin: 0; }
figcaption { margin-top: 11px; color: var(--ink-soft); font-size: .8rem; }
ul.ticks { margin: 0 0 1em; padding-left: 1.25em; }
ul.ticks li { margin-bottom: .58em; padding-left: .2em; }
ul.ticks li::marker { color: var(--violet); }
.facts { margin-top: clamp(32px, 5vw, 64px); }

/* Numbered agent sequence */
.steps { display: grid; gap: clamp(42px, 6vw, 86px); margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(32px, 5vw, 72px); }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy, .step-visual { width: 100%; max-width: 480px; margin-inline: auto; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: var(--night); color: var(--mint); font-size: .88rem; font-weight: 800; }
.step-visual .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 470px; margin-inline: auto; }
.step-visual .pair .shot { box-shadow: 0 12px 30px rgba(20,43,42,.12); }
.term { overflow-x: auto; padding: clamp(18px, 2.5vw, 27px); border: 1px solid #273b46; border-radius: 18px; background: var(--night); color: #e9f4f2; font-size: .83rem; line-height: 1.7; box-shadow: 0 20px 44px rgba(17,27,37,.14); }
.term .bar { display: flex; gap: 7px; margin-bottom: 16px; }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #5c6974; }
.term .bar i:first-child { background: #f36c71; }
.term .bar i:nth-child(2) { background: #f5bf58; }
.term .bar i:nth-child(3) { background: #6cca9d; }
.term .you { color: #cfb9ff; }
.term .agent { color: white; }
.term .dim { color: #afbec4; }
.term .ok { color: #a9ead4; }
.term p { margin-bottom: .65em; }
pre.term { margin: 0 0 20px; white-space: pre; }
.menu-path { font-weight: 700; }

/* Device mosaic */
.devices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.devices .card { display: grid; grid-column: span 12; align-content: start; gap: 20px; overflow: hidden; }
.devices .card h3 { font-size: 1.55rem; }
.devices .card p { color: var(--ink-soft); }
.devices .d-iphone { background: #e4f4ec; }
.devices .d-mac { background: #eaeafa; }
.devices .d-ipad { background: #f8e9df; }
.devices .d-all { background: #e6f0f4; }
.devices .d-duo { background: #e9efe8; }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 11px; }
.duo-strip { display: grid; grid-template-columns: 1398fr 2853fr; align-items: end; gap: 12px; }
@media (min-width: 900px) {
  .devices .d-iphone, .devices .d-ipad { grid-column: span 5; }
  .devices .d-mac, .devices .d-all { grid-column: span 7; }
  .devices .d-duo { grid-template-columns: 5fr 7fr; align-items: center; }
}

/* Pricing and FAQ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.plan { display: flex; flex-direction: column; }
.plan .price { margin: .1em 0 .7em; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.15; }
.plan .price small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.plan.pro { border: 2px solid var(--violet); background: #f4f0ff; box-shadow: 10px 10px 0 rgba(112,76,234,.12); }
.faq details { padding: 19px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .8em 0 0; color: var(--ink-soft); }

/* Information pages */
.page-head { padding: clamp(76px, 10vw, 132px) 0; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 5.6rem); }
.page-head .lead { margin-bottom: 0; }
.doc { padding: clamp(64px, 8vw, 108px) 0; }
.doc h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.doc h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.doc li { margin-bottom: .5em; }
.band { padding: clamp(45px, 6vw, 72px) 0; }
.band p { max-width: 850px; margin-bottom: .5em; font-size: clamp(1.45rem, 2.5vw, 2.3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.35; }
.banner-stack { display: grid; gap: 19px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.press-grid a { display: block; color: inherit; text-decoration: none; }
.press-grid a span { display: block; margin-top: .6em; color: var(--violet-dark); font-size: .83rem; font-weight: 700; text-decoration: underline; }
.button { display: inline-block; padding: 12px 23px; border-radius: 999px; background: var(--night); color: white; font-size: .85rem; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--violet-dark); }
.on-brand a.button { color: white; }

/* Footer */
.site-footer { padding: 64px 0 44px; background: var(--night-deep); color: #bac9cb; font-size: .8rem; }
.site-footer a { color: white; }
.site-footer .wrap::before { content: "Twixit"; display: block; margin-bottom: 30px; color: white; font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 27px; margin: 0 0 38px; padding: 0; list-style: none; }
.site-footer .legal { max-width: 77em; margin: 16px 0 0; color: #8fa0a6; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 8px; }
  .hero .copy { max-width: 760px; padding-bottom: 0; }
  .hero h1 { max-width: 780px; }
  .stage { width: min(100%, 760px); margin: 12px auto 0; padding: 55px 5% 75px; }
  .stage .fan-a { left: -3%; }
  .stage .fan-c { right: -3%; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 34px, var(--wrap)); }
  .nav { min-height: 80px; }
  .nav ul { gap: 13px; }
  .nav a:not(.brand) { font-size: .78rem; }
  .nav li:last-child a { padding: 6px 10px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(3.05rem, 9vw, 4.7rem); }
  .hero-meta { flex-wrap: wrap; gap: 10px 20px; }
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-copy { order: 0; }
  .step-copy { max-width: 100%; }
}
@media (max-width: 540px) {
  .nav { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 12px; }
  .nav ul { justify-content: space-between; width: 100%; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-kicker { margin-bottom: 20px; font-size: .65rem; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 3.8rem); }
  .hero .lead { font-size: 1rem; }
  .stage { padding: 40px 3% 50px; }
  .stage .fan { display: none; }
  .stage .main { transform: none; }
  .stage-label { right: 0; bottom: 10px; }
  .hero-meta { font-size: .6rem; }
  .card { padding: 23px; }
  .page-head { padding-block: 64px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f1f0;
    --ink-soft: #bac9cb;
    --paper: #0e171e;
    --white: #19252d;
    --wash: #131f27;
    --line: #2a3d44;
    --violet-dark: #c7b8ff;
    --focus: #c7b8ff;
    color-scheme: dark;
  }
  :not(pre) > code { background: #26343c; }
  .card { box-shadow: none; }
  .devices .d-iphone { background: #19352f; }
  .devices .d-mac { background: #272640; }
  .devices .d-ipad { background: #3a2b2b; }
  .devices .d-all { background: #1d323d; }
  .devices .d-duo { background: #243529; }
  .plan.pro { background: #271f3b; }
  .shot { background: #1e2d34; }
  .press-grid a span { color: var(--violet-dark); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01ms !important; }
}
