/* Omake website: one shared stylesheet. Light + dark via prefers-color-scheme. */

/* Self-hosted fonts (latin, latin-ext, vietnamese subsets). CJK text uses system fonts. */
/* Bricolage Grotesque, vietnamese (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Bricolage Grotesque, latin-ext (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque, latin (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter, vietnamese (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Inter, latin-ext (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin (SIL OFL 1.1, see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #FFFBF6;
  --bg-glow: rgba(232, 70, 42, .10);
  --sf: #FFFFFF;
  --sf2: #F4ECE2;
  --tx: #231A3A;
  --tx2: #5C536B;
  --bd: #E8DDD0;
  --ac: #C8381D;
  --ac-tx: #FFFFFF;
  --ac-soft: #FDE4DB;
  --ac-ink: #A72E16;
  --ok: #1E7A4C;
  --ink: #231A3A;
  --cream: #FFF1DE;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(35, 26, 58, .06), 0 12px 32px rgba(35, 26, 58, .08);
  --shadow-lg: 0 30px 60px rgba(35, 26, 58, .22), 0 8px 20px rgba(35, 26, 58, .12);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--font-cjk);
  --font-head: "Bricolage Grotesque", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, var(--font-cjk);
  --lh: 1.6;

  --wrap: 1160px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141217;
    --bg-glow: rgba(255, 106, 66, .12);
    --sf: #1E1B23;
    --sf2: #2A2631;
    --tx: #F6F0E9;
    --tx2: #B6ADC0;
    --bd: #38333F;
    --ac: #FF6A42;
    --ac-tx: #231A3A;
    --ac-soft: #3B2420;
    --ac-ink: #FF8D6C;
    --ok: #62D49C;
    --glass: rgba(30, 27, 35, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .55), 0 8px 20px rgba(0, 0, 0, .4);
  }
}

/* Language-specific type */
:lang(zh) { --font-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; --lh: 1.75; }
:lang(ko) { --font-cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Source Han Sans K", sans-serif; --lh: 1.75; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(vi) { --lh: 1.65; }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: var(--lh);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ac-ink); text-underline-offset: .18em; }
a:hover { color: var(--ac); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.015em; line-height: 1.12; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; border-radius: 6px; }
.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: 12px; top: -100px; z-index: 100;
  background: var(--ac); color: var(--ac-tx); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--ac-tx); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 380px) { :root { --gutter: 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid color-mix(in srgb, var(--bd) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--tx); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(200, 56, 29, .3); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--tx2); text-decoration: none; font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tx); background: var(--sf2); }
@media (max-width: 860px) { .nav .nav-sec { display: none; } }
@media (max-width: 400px) { .nav a { padding: 8px; } .brand { font-size: 1.15rem; } .lang summary { padding: 0 10px; } }

/* Language switcher (details/summary, works without JS) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--sf); color: var(--tx); font-weight: 600; font-size: .9rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang[open] summary { border-color: var(--ac); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--sf); border: 1px solid var(--bd); border-radius: var(--r-md); box-shadow: var(--shadow-lg); z-index: 60;
}
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--tx); text-decoration: none; font-weight: 500; min-height: 44px; align-items: center; }
.lang li a:hover { background: var(--sf2); }
.lang li a[aria-current="true"] { background: var(--ac-soft); color: var(--ac-ink); font-weight: 700; }
.lang li a span { color: var(--tx2); font-size: .8rem; font-weight: 600; }
.lang li a[aria-current="true"] span { color: var(--ac-ink); }

/* Icons */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ac); color: var(--ac-tx); }
.btn-primary:hover { color: var(--ac-tx); filter: brightness(1.06); }
.btn-ghost { background: var(--sf); color: var(--tx); border-color: var(--bd); }
.btn-ghost:hover { color: var(--tx); border-color: var(--tx2); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 14px;
  border-radius: 16px; background: var(--ink); color: var(--cream); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow); min-width: 190px;
}
@media (prefers-color-scheme: dark) { .badge { background: var(--sf2); color: var(--tx); border-color: var(--bd); } }
.badge .ico { width: 28px; height: 28px; }
.badge b { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; }
.badge small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .82; line-height: 1.3; }
.badge[aria-disabled="true"] { cursor: default; }
.badge .soon { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ac); color: var(--ac-tx); }
a.badge:hover { color: var(--cream); filter: brightness(1.15); }
@media (max-width: 420px) { .badge { flex: 1 1 100%; } }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--ac); color: var(--ac-tx); line-height: 1.3; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: var(--ac-ink); }
.nw { white-space: nowrap; }
:lang(zh) .kicker, :lang(ko) .kicker { letter-spacing: .02em; }
.muted { color: var(--tx2); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 12px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); font-weight: 800; }
.section-head p { color: var(--tx2); font-size: 1.08rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--bg-glow), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 14px 30px rgba(200, 56, 29, .35); }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
:lang(zh) .hero h1, :lang(ko) .hero h1 { line-height: 1.18; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--ac); }
.hero .lede { font-size: clamp(1.06rem, 1.8vw, 1.22rem); color: var(--tx2); max-width: 560px; }
.hero-note { font-size: .95rem; color: var(--tx2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sf); border: 1px solid var(--bd); font-size: .88rem; font-weight: 600; }
.chips .ico { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.6; }

/* Phone mockups (decorative, pure CSS) */
.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 0; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 390 / 820; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #3A3342, #18151C); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  flex: none;
}
.phone .screen { position: absolute; inset: 10px; border-radius: 39px; overflow: hidden; background: #0B0A0D; }
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: #000; z-index: 5; }
.phone-back { display: none; }
@media (min-width: 560px) {
  .stage { padding-left: 120px; }
  .phone-back { display: block; position: absolute; left: calc(50% - 250px); top: 40px; transform: rotate(-6deg) scale(.9); opacity: .98; }
  .phone-front { transform: rotate(2deg); }
}
@media (min-width: 940px) { .stage { padding-left: 140px; } .phone-back { left: 0; } }

/* Reader screen */
.rd-page {
  position: absolute; left: 0; right: 0; top: 13%; bottom: 23%; background: #FBFAF7; padding: 7px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 30% 36% 1fr; gap: 6px;
}
.pn { border: 2px solid #1A1A1A; background: #ECEBE6; position: relative; overflow: hidden; }
.pn-wide { grid-column: 1 / 3; }
.pn-a { background: linear-gradient(180deg, #D9D6CE, #F1EFEA); }
.pn-b { background: repeating-linear-gradient(115deg, #ECEBE6 0 5px, #D5D3CC 5px 6px); }
.pn-d { background: radial-gradient(circle at 60% 55%, #F7F5EF 0 30%, #C9C6BD 31%); }
.shape { position: absolute; background: #3B3A40; }
.shape.s1 { left: 14%; bottom: -18%; width: 34%; height: 90%; border-radius: 999px 999px 0 0; }
.shape.s2 { left: 22%; top: 18%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #F4F1EA; border: 2px solid #1A1A1A; }
.shape.s3 { right: 14%; bottom: 0; width: 36%; height: 64%; border-radius: 999px 999px 0 0; background: #55545B; }
.shape.s4 { right: 22%; top: 12%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #F4F1EA; border: 2px solid #1A1A1A; }
.bub { position: absolute; background: #fff; border: 2px solid #1A1A1A; border-radius: 50%; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 8%; }
.bub i { display: block; height: 3px; border-radius: 2px; background: #1A1A1A; }
.bub.tr { border-color: #1A1A1A; }
.bub.tr i { background: #231A3A; }
.bub.b1 { right: 7%; top: 10%; width: 44%; height: 64%; }
.bub.b2 { left: 9%; top: 9%; width: 78%; height: 62%; }
.bub.b3 { left: 8%; top: 14%; width: 46%; height: 62%; }
.bub i.w9 { width: 70%; } .bub i.w7 { width: 54%; } .bub i.w5 { width: 38%; }
.bub .spark { position: absolute; top: -8px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #FF6A42; display: grid; place-items: center; }
.bub .spark svg { width: 11px; height: 11px; stroke: #231A3A; stroke-width: 2.6; fill: none; }

.glass-bar {
  position: absolute; left: 6px; right: 6px; z-index: 3; color: #F6F0E9;
  background: rgba(24, 21, 28, .74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px;
}
.rd-top { top: 38px; padding: 8px 12px; display: flex; flex-direction: column; gap: 0; }
.rd-top b { font-size: 12px; font-weight: 700; line-height: 1.3; }
.rd-top span { font-size: 9.5px; color: #B6ADC0; line-height: 1.3; }
.rd-bot { bottom: 14px; padding: 10px 8px 8px; display: grid; gap: 9px; }
.seg { display: flex; margin-inline: auto; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 9.5px; font-weight: 700; }
.seg span { padding: 3px 10px; border-radius: 999px; color: #B6ADC0; }
.seg span.on { background: #FF6A42; color: #231A3A; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tools span { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; font-weight: 600; padding: 5px 0; border-radius: 10px; color: #F6F0E9; }
.tools span.on { background: rgba(255, 106, 66, .2); color: #FF8D6C; }
.tools .ico { width: 15px; height: 15px; }
.thumbs { display: flex; gap: 4px; justify-content: center; flex-direction: row-reverse; }
.thumbs i { width: 16px; height: 22px; border-radius: 3px; background: #DAD7CF; opacity: .55; }
.thumbs i.cur { opacity: 1; outline: 2px solid #FF6A42; outline-offset: 1px; }

/* Home screen (back phone) */
.home { position: absolute; inset: 0; background: var(--bg); color: var(--tx); padding: 44px 12px 0; display: grid; align-content: start; gap: 12px; }
.home-h { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.home-sub { font-size: 10px; font-weight: 600; color: var(--tx2); }
.home-hero { border-radius: 18px; padding: 10px; display: flex; gap: 10px; color: #FFF1DE; background: radial-gradient(120% 100% at 0% 0%, #8A6BBE 0%, #33427A 52%, #1B2244 100%); }
.home-hero .cv { width: 62px; flex: none; }
.home-hero .meta { display: grid; gap: 4px; align-content: start; font-size: 9px; min-width: 0; }
.home-hero .meta b { font-size: 12px; line-height: 1.2; }
.home-hero .resume { justify-self: start; margin-top: 4px; padding: 4px 10px; border-radius: 8px; background: #FF6A42; color: #231A3A; font-weight: 700; font-size: 9.5px; }
.bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.bar i { display: block; height: 100%; width: 57%; background: #FF6A42; }
.home-label { font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cv { aspect-ratio: 2 / 3; border-radius: 7px; box-shadow: 0 1px 3px rgba(20, 10, 30, .25); }
.cv1 { background: radial-gradient(circle at 72% 28%, rgba(255, 241, 222, .55) 0 16%, transparent 17%), linear-gradient(165deg, #2B3A67, #7A5FA8); }
.cv2 { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .6) 0 14%, transparent 15%), linear-gradient(160deg, #F2D388, #E89B5B); }
.cv3 { background: linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, .15) 48% 52%, transparent 52%), linear-gradient(170deg, #3A3A44, #8A6F4D); }
.cv4 { background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .25) 0 22%, transparent 23%), linear-gradient(160deg, #1F6F6B, #0E3B4A); }
.cv5 { background: linear-gradient(160deg, #7FC1A6, #1F6F6B); }
.cv6 { background: linear-gradient(160deg, #E89B5B, #B8432F); }
.home-tabs { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 46px; padding: 4px; display: flex; gap: 3px; border-radius: 23px; background: color-mix(in srgb, var(--sf) 82%, transparent); border: 1px solid var(--bd); box-shadow: 0 8px 20px rgba(20, 10, 30, .18); }
.home-tabs span { flex: 1; border-radius: 19px; }
.home-tabs span.on { background: var(--ac-soft); }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start;
  background: color-mix(in srgb, var(--sf) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--bd); box-shadow: var(--shadow);
}
.card h3 { font-size: 1.22rem; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card p { color: var(--tx2); font-size: .98rem; }
.chip-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ac-soft); color: var(--ac-ink); margin-bottom: 6px; }
.features-bg { position: relative; }
.features-bg::before { content: ""; position: absolute; inset: 10% 0 auto 0; height: 60%; background: radial-gradient(60% 50% at 50% 50%, var(--bg-glow), transparent 70%); pointer-events: none; }

/* "Your files" band */
.own { border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); background: var(--ink); color: var(--cream); position: relative; overflow: hidden; display: grid; gap: clamp(28px, 4vw, 44px); }
@media (prefers-color-scheme: dark) { .own { background: var(--sf); border: 1px solid var(--bd); color: var(--tx); } }
.own::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 66, .35), transparent); pointer-events: none; }
.own .kicker { color: #FF8D6C; }
.own h2 { font-size: clamp(1.85rem, 4.4vw, 3rem); font-weight: 800; max-width: 760px; }
.own .lead { font-size: 1.1rem; max-width: 720px; opacity: .88; }
.own-head { display: grid; gap: 14px; position: relative; z-index: 1; }
.own-points { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 1; }
@media (min-width: 820px) { .own-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.own-point { border-radius: var(--r-lg); padding: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; align-content: start; }
@media (prefers-color-scheme: dark) { .own-point { background: var(--sf2); border-color: var(--bd); } }
.own-point h3 { font-size: 1.14rem; display: flex; gap: 10px; align-items: center; }
.own-point h3 .ico { color: #FF8D6C; }
.own-point p { opacity: .86; font-size: .98rem; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 36px); background: var(--sf); border: 1px solid var(--bd); display: grid; gap: 16px; align-content: start; box-shadow: var(--shadow); }
.plan-pro { border: 2px solid var(--ac); background: linear-gradient(180deg, var(--ac-soft), var(--sf) 46%); }
.plan h3 { font-size: 1.5rem; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--tx2); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.6; margin-top: 3px; }
.plan-pro li .ico { color: var(--ac); }
.fineprint { font-size: .86rem; color: var(--tx2); }

.table-wrap { border-radius: var(--r-lg); border: 1px solid var(--bd); background: var(--sf); overflow: hidden; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
.compare caption { text-align: left; padding: 18px 20px 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.compare th, .compare td { text-align: left; padding: 14px 20px; vertical-align: top; border-top: 1px solid var(--bd); }
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx2); border-top: 0; background: var(--sf); }
.compare thead th.pro-col { color: var(--ac-ink); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare td { color: var(--tx2); width: 38%; }
.compare td.pro-col { color: var(--tx); background: color-mix(in srgb, var(--ac-soft) 45%, transparent); }
.compare .no { color: var(--tx2); }
@media (max-width: 680px) {
  .compare thead { display: none; }
  .compare caption { display: block; width: 100%; padding: 16px 16px 6px; }
  .compare, .compare tbody, .compare tr { display: block; width: 100%; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--bd); }
  .compare tbody th { grid-column: 1 / 3; width: auto; border-top: 0; padding: 14px 16px 4px; }
  .compare td { width: auto; border-top: 0; padding: 4px 16px 14px; font-size: .92rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); margin-bottom: 2px; }
  .compare td.pro-col { background: none; }
  .compare td.pro-col::before { color: var(--ac-ink); }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--r-lg); border: 1px solid var(--bd); background: var(--sf); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; min-height: 60px; font-weight: 700; font-size: 1.05rem; border-radius: var(--r-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background-color: var(--sf2);
  background-image: linear-gradient(var(--ac-ink), var(--ac-ink)), linear-gradient(var(--ac-ink), var(--ac-ink));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat; transition: transform .2s;
}
.faq details[open] summary::after { background-size: 12px 2px, 0 0; }
.faq details[open] summary { color: var(--ac-ink); }
.faq .answer { padding: 0 22px 20px; color: var(--tx2); display: grid; gap: 10px; overflow-wrap: anywhere; }
.faq .answer a { font-weight: 600; }
.faq-group { display: grid; gap: 12px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group > h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; display: flex; align-items: center; gap: 12px; }

/* CTA band */
.cta { border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, #FF6A42, #E2391B); color: #231A3A; display: grid; gap: 22px; justify-items: start; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; max-width: 640px; }
.cta p { font-size: 1.08rem; max-width: 620px; font-weight: 500; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn-ghost { background: #FFF1DE; color: #231A3A; border-color: transparent; }
.cta .badge { background: #231A3A; color: #FFF1DE; border-color: transparent; }
.cta .badge .soon { background: #FFF1DE; color: #A72E16; }
.cta :focus-visible { outline-color: #231A3A; }

/* Doc pages (support, legal) */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; gap: 14px; max-width: 860px; }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); font-weight: 800; }
.page-head p { font-size: 1.1rem; color: var(--tx2); }
.contact-card { border-radius: var(--r-xl); padding: clamp(22px, 4vw, 32px); background: var(--sf); border: 1px solid var(--bd); box-shadow: var(--shadow); display: grid; gap: 14px; margin-top: 48px; max-width: 860px; margin-inline: auto; }
.contact-card h2 { font-size: 1.5rem; font-weight: 800; }
.contact-card p { color: var(--tx2); }
.contact-card .btn { justify-self: start; }
.email-line { font-weight: 700; word-break: break-all; }

.prose { max-width: 780px; margin-inline: auto; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; margin: 2.4em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 .5em; font-family: var(--font-ui); letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; color: var(--tx); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ac); }
.prose .summary { border-radius: var(--r-lg); padding: 22px 24px; background: var(--ac-soft); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); margin-bottom: 1.6em; }
.prose .summary h2 { margin-top: 0; font-size: 1.25rem; }
.prose .summary ul { margin-bottom: 0; }
.prose .meta { color: var(--tx2); font-size: .95rem; }
.prose .toc { border-radius: var(--r-lg); padding: 20px 24px; background: var(--sf); border: 1px solid var(--bd); }
.prose .toc ol { margin: 0; columns: 2 220px; column-gap: 24px; }
.prose .toc a { text-decoration: none; font-weight: 600; }
.prose .callout { border-left: 4px solid var(--ac); padding: 12px 18px; background: var(--sf); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--bd); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--bd); }
.prose thead th { border-top: 0; background: var(--sf2); font-weight: 700; }
.lang-note { font-size: .92rem; color: var(--tx2); border-radius: var(--r-md); padding: 12px 16px; background: var(--sf2); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 72px; }
.notfound .wrap { display: grid; gap: 18px; justify-items: center; max-width: 640px; }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--bd); background: var(--sf); padding-block: 48px 36px; margin-top: 24px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 32px; }
.foot-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { color: var(--tx2); max-width: 320px; }
.foot-col h2 { font-family: var(--font-ui); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { color: var(--tx); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot-col a:hover { color: var(--ac-ink); text-decoration: underline; }
.foot-col a[aria-current="true"], .foot-col a[aria-current="page"] { color: var(--ac-ink); font-weight: 700; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--tx2); font-size: .85rem; border-top: 1px solid var(--bd); padding-top: 20px; }
