/* tryedgework.com. Colours, type and radii mirror design/claude-design/DESIGN.md + tokens.json. Dark only. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Barlow_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Barlow_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Barlow_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/BarlowCondensed_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url("/fonts/BarlowCondensed_700Bold_Italic.woff2") format("woff2"); }

:root {
  --ink-950: #0B1220;
  --ink-900: #111A2B;
  --ink-800: #1A2438;
  --ink-700: #26324A;
  --ink-500: #5B6780;
  --ink-300: #A3ADBF;
  --snow-50: #F5F8FB;
  --ice-500: #2EC4F2;
  --ice-100: #D6F3FC;
  --text-2: #C9D0DC; /* body copy between snow-50 and ink-300, 11:1 on ink-950 */
  --r-chip: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-sheet: 24px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink-950); color: var(--snow-50); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ice-500); text-underline-offset: 3px; }
a:hover { color: var(--ice-100); }
:focus-visible { outline: 3px solid var(--ice-500); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--ink-300); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ice-500); color: var(--ink-950); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink-950); border-bottom: 1px solid var(--ink-700); }
.bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { width: 140px; height: auto; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--ink-300); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--snow-50); }
.bar-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--ink-300); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--ink-700); border-radius: 999px; }
.lang:hover { color: var(--snow-50); border-color: var(--ink-500); }
.lang-on { color: var(--ice-500); }
.lang-sep { opacity: .5; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: var(--ice-500); color: var(--ink-950); text-decoration: none; font: 700 17px/1 var(--body); padding: 15px 22px; border-radius: var(--r-btn); transition: background .15s ease-out; }
.btn:hover { background: var(--ice-100); color: var(--ink-950); }
.store-soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border: 1px solid var(--ink-700); border-radius: var(--r-btn); background: var(--ink-900); color: var(--snow-50); font-weight: 600; font-size: 16px; }
.store-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice-500); box-shadow: 0 0 0 4px rgba(46, 196, 242, .2); }

/* ---------- type ---------- */
.eyebrow { color: var(--ice-500); font: 600 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
h1 { font: italic 700 clamp(50px, 7vw, 96px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h1 em { font-style: italic; color: var(--ice-500); }
h2 { font: 700 clamp(36px, 4.2vw, 56px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); line-height: 1.55; }

/* ---------- phone frame ---------- */
.phone { --w: 270px; position: relative; margin: 0; width: var(--w); flex: none; padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .16); background: var(--ink-800); border: 1px solid var(--ink-700); }
.screen { overflow: hidden; border-radius: calc(var(--w) * .135); aspect-ratio: 660 / 1435; background: var(--ink-950); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-lockup { width: 260px; height: auto; margin-bottom: 40px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 32px; }
.cta-mail { margin: 0; color: var(--ink-300); font-size: 16px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 8px 14px; border-radius: var(--r-chip); background: var(--ink-900); color: var(--ink-300); font-weight: 600; font-size: 15px; border: 1px solid var(--ink-700); }
.hero-visual { position: relative; height: 620px; }
.hero-visual .phone { position: absolute; top: 50%; left: 50%; }
.hp-front { --w: 286px; z-index: 2; transform: translate(-30%, -50%); }
.hp-back { --w: 250px; transform: translate(-95%, -44%); opacity: .75; }

/* ---------- features ---------- */
.feature { padding: 104px 0; border-top: 1px solid var(--ink-700); }
.feature-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 540px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.ticks .ic { color: var(--ink-950); background: var(--ice-500); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 3px; }
.ticks.keep .ic { background: var(--ink-700); color: var(--snow-50); }
.note { margin: 22px 0 0; color: var(--ink-300); font-size: 15px; }
.feature-visual { display: flex; justify-content: center; align-items: center; gap: 24px; }
.feature-visual .phone { --w: 240px; }
.feature-visual.n3 { gap: 0; }
.feature-visual.n3 .phone { --w: 214px; }
.feature-visual.n3 .phone:nth-child(1) { margin-right: -30px; transform: translateY(24px); }
.feature-visual.n3 .phone:nth-child(2) { z-index: 2; --w: 236px; }
.feature-visual.n3 .phone:nth-child(3) { margin-left: -30px; transform: translateY(24px); }
.feature-visual.n2 .phone:nth-child(2) { transform: translateY(40px); }

/* ---------- cards (more + privacy) ---------- */
.more, .privacy-hl { padding: 104px 0; border-top: 1px solid var(--ink-700); }
.cards { list-style: none; margin: 36px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards li { padding: 24px 20px; border-radius: var(--r-card); background: var(--ink-900); border: 1px solid var(--ink-700); }
.pc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-800); color: var(--ice-500); margin-bottom: 16px; }
.pc-ic svg { width: 24px; height: 24px; }
.cards h3 { font: 600 20px/1.25 var(--body); margin-bottom: 8px; }
.cards p { color: var(--ink-300); font-size: 15.5px; margin: 0; }
.priv-foot { color: var(--ink-300); }
.priv-foot a { font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding: 24px 0 120px; }
.cta-box { text-align: center; padding: 72px 24px; border-radius: var(--r-sheet); background: var(--ink-900); border: 1px solid var(--ink-700); max-width: 1152px; }
.cta-box img { margin: 0 auto 26px; }
.cta-box p { max-width: 560px; margin: 0 auto 10px; color: var(--text-2); font-size: 19px; }
.cta-box .cta-note { margin-top: 22px; font-size: 16px; color: var(--ink-300); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink-700); padding: 56px 0 36px; background: var(--ink-900); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: start; }
.foot-brand p { color: var(--ink-300); margin: 14px 0 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 32px; justify-content: start; }
.foot-links a { display: inline-block; padding: 8px 0; color: var(--snow-50); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ice-500); }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-700); color: var(--ink-300); font-size: 13px; line-height: 1.5; display: grid; gap: 8px; }
.foot-legal p { margin: 0; }

/* ---------- inner pages ---------- */
.simple, .doc { padding: 64px 0 104px; }
.simple h1, .doc h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 18px; overflow-wrap: break-word; hyphens: auto; }
.simple .lead { margin-bottom: 32px; }
.card { padding: 28px; border-radius: var(--r-card); background: var(--ink-900); border: 1px solid var(--ink-700); margin-bottom: 18px; }
.card h2 { font-size: 30px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .ticks { margin: 0; }
.contact { display: flex; gap: 20px; }
.contact-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-card); background: var(--ice-500); color: var(--ink-950); flex: none; }
.contact-ic .ic { width: 26px; height: 26px; }
.faq-h { font-size: 38px; margin: 56px 0 18px; }
.faq details { border-radius: var(--r-card); background: var(--ink-900); border: 1px solid var(--ink-700); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 18px; position: relative; border-radius: var(--r-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--ink-800); color: var(--ice-500); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); }
.faq .ans p:last-child, .faq .ans ul:last-child { margin-bottom: 0; }
.faq .ans ul { padding-left: 1.2em; margin: 0 0 1em; }
.faq .ans li::marker { color: var(--ice-500); }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; }
.path b { padding: 10px 16px; border-radius: var(--r-btn); background: var(--ink-900); border: 1px solid var(--ink-700); font-weight: 700; }
.path b:last-child { background: var(--ice-500); color: var(--ink-950); border-color: var(--ice-500); }
.path .arrow { color: var(--ink-300); }
.numbered { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; color: var(--text-2); }
.numbered li::marker { color: var(--ice-500); font-weight: 700; }
.nf { text-align: center; }
.nf-code { font: italic 700 clamp(96px, 18vw, 180px)/1 var(--display); color: var(--ice-500); margin: 20px 0 10px; }

/* friend invite (/friend/<CODE>) */
.invite { padding: 56px 0 80px; text-align: center; }
.invite .narrow { max-width: 560px; }
.invite-icon { margin: 0 auto 28px; border-radius: 20px; }
.invite h1 { font-size: clamp(40px, 9vw, 64px); margin-bottom: 16px; }
.invite .lead { margin-bottom: 28px; }
.invite-code-card { margin-bottom: 24px; }
.invite-code { font: 600 clamp(44px, 12vw, 64px)/1.1 var(--display); letter-spacing: .08em; color: var(--ice-500); font-variant-numeric: tabular-nums; margin: 6px 0 14px; }
.invite-code:empty { display: none; }
.invite-bad-msg, .invite-bad .invite-code-card, .invite-bad [data-open] { display: none; }
.invite-bad .invite-bad-msg { display: block; }
.invite-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
.invite-switch { background: none; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
[hidden] { display: none !important; }

/* legal documents */
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-side { position: sticky; top: 96px; font-size: 15px; max-height: calc(100vh - 120px); overflow: auto; }
.side-h { color: var(--ink-300); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.toc { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--ice-500); }
.doc-side p a { text-decoration: none; line-height: 1.9; }
.prose { max-width: 760px; }
.updated { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink-900); border: 1px solid var(--ink-700); color: var(--ink-300); font-size: 15px; font-weight: 600; margin-bottom: 30px; }
.prose h2 { font-size: 32px; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font: 600 20px/1.3 var(--body); margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ice-500); }
.prose strong { color: var(--snow-50); }
.prose a { overflow-wrap: anywhere; }
.prose .table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--ink-700); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 640px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink-700); vertical-align: top; color: var(--text-2); }
.prose th { background: var(--ink-900); font-weight: 700; color: var(--snow-50); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards, .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .feature-visual.n3 .phone { --w: 190px; }
  .feature-visual.n3 .phone:nth-child(2) { --w: 210px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 560px; }
  .feature { padding: 72px 0; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
  .more, .privacy-hl { padding: 72px 0; }
  .foot { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-side { order: 2; position: static; max-height: none; padding: 20px; border-radius: var(--r-card); background: var(--ink-900); border: 1px solid var(--ink-700); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .bar { height: 60px; gap: 16px; }
  .brand img { width: 120px; }
  .hero-lockup { width: 200px; margin-bottom: 28px; }
  .hero-visual { height: 470px; }
  .hp-front { --w: 228px; }
  .hp-back { --w: 196px; }
  .cards, .cards-5 { grid-template-columns: 1fr; }
  .feature-visual { gap: 12px; }
  .feature-visual .phone, .feature-visual.n3 .phone, .feature-visual.n3 .phone:nth-child(2) { --w: 46vw; }
  .feature-visual.n3 .phone:nth-child(3) { display: none; }
  .feature-visual.n3 .phone:nth-child(1) { margin-right: 0; transform: none; }
  .feature-visual.n2 .phone:nth-child(2) { transform: translateY(24px); }
  .contact { flex-direction: column; }
  .card { padding: 22px; }
  .cta-box { padding: 52px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .doc-side, .skip { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li, .prose td, .prose th { color: #000; }
}
