/*
 * LYSS Apps studio homepage, theme 1 "Ivory & black" from the LYSS brand board. Every colour is a
 * token below. Theme 7 "Black & gold", the dark alternative, is kept for comparison: ?theme=dark.
 */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #efe8e0;
  --line: #e4dbd2;
  --ink: #111111;
  --muted: #6b5142;
  --faint: #8a7a6e;
  --accent: #6b5142;
  --accent-a: #111111;
  --accent-b: #111111;
  --on-accent: #f7f4ef;
  --field: #ffffff;
  --phone-shadow: 0 40px 70px -34px rgba(58, 46, 39, .55);
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The products keep their own colours. */
  --plum: #4a2c38;
  --butter: #efe5c8;
  --peach: #e9d2c3;
  color-scheme: light;
}

/* Theme 7 "Black & gold" (lyssapps.com/?theme=dark). */
:root[data-theme="dark"] {
  --bg: #111111;
  --surface: #1b1b1b;
  --surface-2: #232323;
  --line: #2c2c2c;
  --ink: #f7f4ef;
  --muted: #b9afa6;
  --faint: #8f857c;
  --accent: #d4b483;
  --accent-a: #ead1a2;
  --accent-b: #c9a26b;
  --on-accent: #111111;
  --field: #1f1f1f;
  --phone-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 10px; font-weight: 600; letter-spacing: .32em;
           text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 999px;
       font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
       text-decoration: none; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 10px; }
.btn-gold { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); color: var(--on-accent); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px var(--accent); }
.btn-outline { border: 1px solid var(--accent); color: var(--ink); background: transparent; }
.link-line { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
             padding-bottom: 6px; border-bottom: 1px solid var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
       backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand-rule { width: 1px; height: 16px; background: var(--accent); }
.brand-apps { font-size: 10px; font-weight: 600; letter-spacing: .36em; color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: transparent; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .14em;
               color: var(--faint); padding: 6px 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; }
.lead { margin: 0; max-width: 480px; font-size: 16px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 4px; }
.hero-art { flex: 1 1 460px; min-width: 0; position: relative; height: 540px; }
.glow { position: absolute; inset: 40px 30px 20px; border-radius: 50%;
        background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 66%); }
/* Real app screens in thin phone frames: LYSS Book in front, the other two behind it. */
.phone { position: absolute; padding: 7px; border-radius: 38px; background: #1c1c1e; border: 1px solid #3a3a3e;
         box-shadow: var(--phone-shadow); }
.phone img { display: block; width: 100%; border-radius: 31px; }
.phone-main { left: 50%; top: 10px; width: 232px; margin-left: -116px; z-index: 2; }
.phone-side { top: 70px; width: 196px; opacity: .92; }
.phone-left { left: 50%; margin-left: -250px; transform: rotate(-7deg); }
.phone-right { left: 50%; margin-left: 54px; transform: rotate(7deg); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 44px); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card { padding: 32px 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
        display: flex; flex-direction: column; gap: 14px; }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; font-weight: 400; }
.card p { margin: 0; color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.product { border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
           transition: transform .3s; }
a.product:hover { transform: translateY(-4px); }
.product-plum { background: var(--plum); color: #f7f4ef; }
.product-butter { background: var(--butter); color: #2a2018; }
.product-peach { background: var(--peach); color: #2a1a12; }
.product-text { padding: 32px 30px 0; display: flex; flex-direction: column; gap: 10px; }
.product-tag { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .78; }
.product h3 { font-size: 26px; }
.product p { margin: 0; opacity: .85; }
.product-more { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-shot { margin: 28px auto 0; width: 180px; border-radius: 28px 28px 0 0; }

/* Process */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.steps li { padding: 8px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { font-family: var(--serif); font-size: 30px; font-style: italic; font-weight: 300; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 21px; font-weight: 400; }
.steps p { margin: 0; color: var(--muted); }

/* Inquiry */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-text h2 { font-size: clamp(32px, 3.6vw, 50px); }
.contact-text p { margin: 0; color: var(--muted); }
.contact-text a { color: var(--accent); font-weight: 600; }
.form { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 28px;
        background: var(--surface); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form textarea {
  height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--field);
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.form textarea { height: auto; padding: 14px 18px; resize: vertical; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip { flex-direction: row; letter-spacing: 0; text-transform: none; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line);
             font-size: 14px; font-weight: 600; color: var(--ink); }
.chip input:checked + span { border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 13px; color: var(--faint); }

.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-motto { display: flex; align-items: center; gap: 14px; font-size: 10px; font-weight: 600; letter-spacing: .36em; color: var(--accent); }
.footer-motto .rule { width: 40px; height: 1px; background: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--faint); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  /* Phones: logo and languages; the page's own buttons lead to the sections. */
  .nav-links, .nav-row > .btn { display: none; }
  .nav-row { min-height: 72px; }
  .hero { padding: 40px 0 72px; }
  .hero-art { height: 420px; }
  .phone-main { width: 180px; margin-left: -90px; }
  .phone-side { width: 150px; top: 56px; }
  .phone-left { margin-left: -180px; }
  .phone-right { margin-left: 30px; }
  .section { padding: 64px 0; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.product { transition: none; }
}
