/* Sena — trysena.app
   The app's own design system, translated to the web.
   canvas #EAD9D0 · ink #1C1917 · rose #D98E85 · white cards r24 · serif display, sans body */

:root {
  --canvas: #EAD9D0;
  --canvas-deep: #DCC7BB;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #6E635D;
  --ink-3: #A7998F;
  --rose: #D98E85;
  --rose-soft: #F7E4E0;
  --hairline: rgba(28, 25, 23, 0.08);
  --r-card: 24px;
  --r-pill: 999px;
  --serif: "Instrument Serif", ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --page: clamp(20px, 5vw, 48px);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--rose-soft); }

/* ---------- atmosphere: the app's aura, whispering behind everything ---------- */
.aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(247, 228, 224, .95), transparent 60%),
    radial-gradient(50vw 50vw at -10% 40%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(45vw 45vw at 60% 110%, rgba(217, 142, 133, .18), transparent 60%),
    var(--canvas);
}

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 8vw, 88px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 2 * var(--page)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 120px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--serif); font-size: 26px; line-height: 1; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 500; font-size: 16px;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); font-size: 13px; color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 22px; }
.hero-copy .lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; background: var(--ink); padding: 10px;
  box-shadow: 0 30px 60px -24px rgba(28, 25, 23, .35), 0 8px 24px -12px rgba(28, 25, 23, .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.tilt { transform: rotate(-4deg); }
.hero .phone { margin-inline: auto; }
@media (hover: hover) {
  .phone { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
  .phone:hover { transform: translateY(-6px) rotate(0deg); }
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card {
  background: var(--surface); border-radius: var(--r-card); padding: 28px 28px 0;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.card p { color: var(--ink-2); max-width: 30ch; }
.card .phone { max-width: 240px; margin: 18px auto -40%; border-radius: 34px; padding: 8px; }
.card .phone img { border-radius: 27px; }
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; padding: 28px; }
.card.wide .phone { margin: 0 0 0 auto; max-width: 200px; }
.card.wide .txt { max-width: 34ch; }

/* ---------- quote band ---------- */
.band {
  border-radius: 32px; padding: clamp(56px, 8vw, 110px) var(--page); text-align: center;
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(60% 80% at 90% 90%, rgba(217, 142, 133, .28), transparent 60%),
    var(--rose-soft);
}
.band h2 { font-size: clamp(30px, 5vw, 64px); max-width: 18ch; margin-inline: auto; }
.band .eyebrow { margin-bottom: 20px; }

/* ---------- footer ---------- */
footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.doc { width: min(var(--measure), 100% - 2 * var(--page)); margin-inline: auto; padding-block: clamp(40px, 6vw, 80px) 40px; }
.doc header { margin-bottom: 40px; }
.doc header p { margin-top: 12px; }
.doc article { background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin: 26px 0 8px; font-family: var(--sans); font-weight: 600; }
.doc p, .doc li { color: #2E2825; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.doc .note { background: var(--rose-soft); border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font-weight: 600; }

/* ---------- reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; } .reveal.d3 { animation-delay: .28s; } .reveal.d4 { animation-delay: .4s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .phone, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 260px; margin-top: 12px; }
  .features { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; flex-direction: column; align-items: stretch; padding: 28px 28px 0; }
  .card.wide .phone { margin: 18px auto -40%; max-width: 240px; }
  .nav-links { gap: 16px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
}

/* the 404 page reuses .doc; its button must not inherit the link underline */
.doc .btn { text-decoration: none; }
