/* Timory — brand: crimson #DB284E · dark #1A0711 · surfaces #2B0F1B · borders #4D2030 */
:root {
  --crimson: #DB284E;
  --crimson-dark: #B13B51;
  --ink: #1A0711;
  --surface: #2B0F1B;
  --border: #4D2030;
  --text: #FFFFFF;
  --text-soft: #FBEDF1;
  --text-dim: #D9B8C2;
  --radius: 16px;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--text-soft); }
img { max-width: 100%; display: block; }
picture { display: contents; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 7, 17, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-dim); font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-block; background: var(--crimson); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #c22045; transform: translateY(-1px); }
.btn.big { font-size: 18px; padding: 16px 34px; }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text-soft); }
.btn.ghost:hover { border-color: var(--crimson); background: transparent; }
.header-cta { margin-left: 8px; padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--crimson) 0%, #a91e3e 100%); padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase; }
.hero .sub { margin: 20px 0 28px; font-size: 19px; color: var(--text-soft); max-width: 34em; }
.hero .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .chips { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 48px; }
.chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(26,7,17,.35); color: var(--text-soft); }
.hero-shot { align-self: end; }
.hero-shot img { width: min(320px, 80%); margin: 0 auto; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 60px rgba(26,7,17,.45); }

/* App Store badge (inline SVG styled) */
.appstore-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border: 1px solid #fff3; border-radius: 12px; padding: 8px 18px; }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .small { display: block; font-size: 11px; opacity: .85; line-height: 1.1; }
.appstore-badge .large { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; text-transform: uppercase; letter-spacing: -.3px; margin-bottom: 12px; }
.section-lead { color: var(--text-dim); font-size: 17px; max-width: 44em; margin-bottom: 44px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--crimson); border-radius: 50%; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Screenshots gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.shot { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.shot img { aspect-ratio: 1290 / 2796; object-fit: cover; }
.shot figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--text-dim); }
.shot.noimg img { display: none; }
.shot.noimg { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 1290 / 2796; background: linear-gradient(160deg, var(--crimson), #7e1830); }
.shot.noimg figcaption { color: #fff; font-weight: 700; font-size: 16px; text-transform: uppercase; text-align: center; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }
.feature .ico { font-size: 26px; margin-bottom: 12px; display: block; }

/* Wedge */
.wedge { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wedge .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.wedge .col { border-radius: var(--radius); padding: 28px; }
.wedge .them { background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.wedge .us { background: linear-gradient(160deg, var(--crimson), #a91e3e); }
.wedge h3 { margin-bottom: 14px; font-size: 18px; }
.wedge ul { list-style: none; }
.wedge li { padding: 7px 0 7px 30px; position: relative; font-size: 15.5px; }
.wedge .them li::before { content: "–"; position: absolute; left: 8px; color: var(--text-dim); }
.wedge .us li::before { content: "✓"; position: absolute; left: 4px; font-weight: 800; }
.wedge .them li { color: var(--text-dim); }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--crimson); transform: translateY(-2px); }
.guide-card .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--crimson); font-weight: 700; }
.guide-card h3 { color: var(--text); font-size: 18px; margin: 8px 0 6px; }
.guide-card p { color: var(--text-dim); font-size: 14.5px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--crimson); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; color: var(--text-dim); font-size: 15.5px; }
.faq .answer a { color: var(--crimson); font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--crimson), #a91e3e); text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }
.cta-band p { color: var(--text-soft); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; font-size: 14px; color: var(--text-dim); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.fineprint { border-top: 1px solid var(--border); padding-top: 20px; font-size: 12.5px; }

/* Article (guides) */
.article { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.article .crumbs { font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }
.article .crumbs a { color: var(--text-dim); }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 900; margin-bottom: 18px; }
.article .intro { font-size: 18px; color: var(--text-soft); margin-bottom: 32px; }
.article h2 { font-size: 24px; margin: 40px 0 14px; }
.article h3 { font-size: 18px; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; color: var(--text-dim); }
.article p strong, .article li strong { color: var(--text-soft); }
.article ol, .article ul { margin: 0 0 16px 22px; color: var(--text-dim); }
.article li { margin-bottom: 10px; }
.article .tip { background: var(--surface); border-left: 3px solid var(--crimson); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; font-size: 15px; color: var(--text-dim); }
.article .cta-inline { background: linear-gradient(160deg, var(--crimson), #a91e3e); border-radius: var(--radius); padding: 28px; text-align: center; margin: 36px 0; }
.article .cta-inline p { color: var(--text-soft); margin-bottom: 16px; }
.article .related { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; }
.article .related h2 { margin-top: 0; }
.article .related ul { list-style: none; margin-left: 0; }
.article .related a { color: var(--crimson); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .wedge .cols { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* Language switcher */
.langbar { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 22px 0 10px; font-size: 13px; line-height: 1.7; }
.langbar a { color: var(--text-dim); text-decoration: none; }
.langbar a:hover { color: var(--text); text-decoration: underline; }
.langbar .cur { color: var(--text); font-weight: 700; }
