/* ===== Tiny Days design tokens (from app spec) ===== */
:root {
  --surface-primary: #FAF9F6;
  --surface-secondary: #EEEEEA;
  --accent-primary: #56634F;
  --accent-gradient-end: #8C9A84;
  --accent-secondary: #D8E7CE;
  --fg-primary: #303330;
  --fg-secondary: #5D605C;
  --fg-muted: #5D605C;
  --border-subtle: #EEEEEA;
  --card-bg: #FFFFFF;
  --cta-text: #EFFEE4;
  --today-text: #485543;

  --accent-grad: linear-gradient(135deg, #56634F 0%, #8C9A84 100%);

  --serif: "Noto Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-card: 0 1px 2px rgba(48, 51, 48, 0.04), 0 8px 24px rgba(48, 51, 48, 0.06);
  --shadow-soft: 0 2px 4px rgba(0,0,0,0.03), 0 12px 32px rgba(0,0,0,0.06);
  --shadow-cta: 0 8px 20px rgba(86, 99, 79, 0.30);

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--fg-primary);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Shared ===== */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-primary);
  margin-bottom: 18px;
}
.eyebrow--center { display: block; text-align: center; }

.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.18;
  letter-spacing: -0.8px; color: var(--fg-primary);
  text-align: center; max-width: 760px; margin: 0 auto;
}
.section-title--light { color: var(--cta-text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; text-decoration: none;
  background: var(--accent-grad); color: var(--cta-text);
  border-radius: 9999px; box-shadow: var(--shadow-cta);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(86,99,79,.38); }
.btn--small { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--large { height: 60px; padding: 0 34px; font-size: 18px; }
.btn--store { flex-direction: column; height: 64px; line-height: 1.1; gap: 1px; }
.btn__pre { font-size: 11px; font-weight: 400; letter-spacing: .3px; opacity: .85; }
.btn__store { font-size: 20px; font-weight: 600; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(48,51,48,0.06);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__inner > .btn { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon {
  width: 34px; height: 34px; border-radius: 9px;
  filter:
    drop-shadow(0 0 .75px rgba(48,51,48,.34))
    drop-shadow(0 2px 4px rgba(48,51,48,.18));
}
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.4px; color: var(--fg-primary); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--fg-secondary); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--accent-primary); }

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06;
  letter-spacing: -1.5px; color: var(--fg-primary); margin-bottom: 22px;
}
.hero__sub { font-size: 19px; line-height: 1.55; color: var(--fg-secondary); max-width: 460px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__note { font-size: 13px; color: var(--fg-muted); letter-spacing: .2px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trust li {
  font-size: 13px; font-weight: 500; color: var(--accent-primary);
  background: var(--accent-secondary); padding: 7px 14px; border-radius: 9999px;
}

/* ===== Phone mockup ===== */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(330px, 86vw);
  background: #1c201b; border-radius: 46px; padding: 10px;
  box-shadow: 0 30px 70px rgba(48,51,48,.28), 0 8px 18px rgba(48,51,48,.18);
}
.phone--feature { width: min(300px, 82vw); }
.phone__screen {
  position: relative; width: 100%; aspect-ratio: 1320 / 2868;
  background: var(--surface-primary); border-radius: 38px;
  overflow: hidden;
}
.phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry__date { font-family: var(--serif); font-size: 16px; color: var(--fg-muted); margin-bottom: 16px; }
.keepsake { display: flex; justify-content: center; margin-bottom: 20px; }
.keepsake__photo {
  position: relative; width: 200px; height: 168px; border-radius: 24px;
  transform: rotate(-2deg);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(150deg, #c9d6bd, #8ca27e 55%, #6f8462);
  box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(0,0,0,.12);
}
.photo--a {
  background:
    radial-gradient(circle at 70% 20%, rgba(255,247,224,.65), transparent 50%),
    linear-gradient(150deg, #e4dcc6, #b9c39c 50%, #889a72);
}
.photo__tag {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 11px; font-weight: 500; color: var(--accent-primary);
  background: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 9999px;
}
.entry__body { font-family: var(--serif); font-size: 17px; line-height: 1.62; color: var(--fg-primary); margin-bottom: 18px; }

.linkcard {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 11px;
  box-shadow: var(--shadow-card);
}
.linkcard__thumb {
  width: 52px; height: 52px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, #d8e7ce, #8c9a84);
}
.thumb--b { background: linear-gradient(135deg, #e6dcc4, #b6a37e); }
.thumb--c { background: linear-gradient(135deg, #e0cfc6, #b58f7e); }
.linkcard__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.linkcard__title { font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.linkcard__sub { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabbar {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 26px; padding: 12px 26px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(12px);
  border-radius: 9999px; box-shadow: 0 6px 18px rgba(48,51,48,.12);
}
.tab { font-size: 18px; opacity: .4; filter: grayscale(1); }
.tab--active { opacity: 1; filter: none; }
.fab {
  position: absolute; right: 18px; bottom: 78px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-grad); color: var(--cta-text);
  display: grid; place-items: center; font-size: 26px; font-weight: 300;
  box-shadow: var(--shadow-cta);
}

/* ===== Why ===== */
.why { padding: 88px 0; background: var(--surface-secondary); }
.why .section-title { margin-bottom: 52px; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why__card { background: var(--card-bg); border-radius: 24px; padding: 30px 28px; box-shadow: var(--shadow-card); }
.why__card h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.4px; margin-bottom: 12px; }
.why__card p { color: var(--fg-secondary); font-size: 15.5px; line-height: 1.58; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.features .section-title { margin-bottom: 70px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 96px;
}
.feature:last-child { margin-bottom: 0; }
.feature--reverse .feature__text { order: 2; }
.feature__text h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.7px; margin-bottom: 16px; }
.feature__text p { font-size: 18px; line-height: 1.6; color: var(--fg-secondary); max-width: 460px; }
.feature__visual { display: flex; justify-content: center; }

.mini-card {
  width: 100%; max-width: 360px; background: var(--card-bg);
  border-radius: 28px; padding: 26px; box-shadow: var(--shadow-soft);
}
.mini-card__date { font-family: var(--serif); font-size: 16px; color: var(--fg-muted); margin-bottom: 14px; }
.compose {
  background: var(--surface-secondary); border-radius: 14px; padding: 16px; min-height: 110px; margin-bottom: 14px;
}
.compose__placeholder { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--fg-primary); }
.compose__actions { display: flex; gap: 10px; margin-bottom: 16px; }
.chip {
  flex: 1; text-align: center; font-size: 14px; font-weight: 500; color: var(--fg-secondary);
  background: var(--surface-secondary); border: 1px solid var(--border-subtle);
  padding: 11px; border-radius: 12px;
}
.save-btn {
  text-align: center; background: var(--accent-grad); color: var(--cta-text);
  font-weight: 500; font-size: 16px; padding: 15px; border-radius: 9999px; box-shadow: var(--shadow-cta);
}

/* Calendar mockup */
.calendar { padding: 24px; }
.calendar-shot-card {
  max-width: 380px;
  padding: 0;
  overflow: hidden;
}
.calendar-shot {
  display: block;
  width: 100%;
  height: auto;
}
.calendar__head { text-align: center; margin-bottom: 16px; }
.calendar__month { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: -0.8px; }
.calendar__year { display: block; font-size: 13px; letter-spacing: 1.4px; color: var(--fg-muted); margin-top: 2px; }
.calendar__dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.calendar__dow span { text-align: center; font-size: 13px; font-weight: 500; color: var(--fg-muted); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.cal-cell {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  font-size: 14px; color: var(--fg-primary); border-radius: 11px;
}
.cal-cell--muted { color: #c3c4bf; }
.cal-cell--today { background: var(--accent-secondary); color: var(--today-text); font-weight: 600; }
.cal-cell--entry::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary);
}

/* Saves mockup */
.saves { display: flex; flex-direction: column; gap: 12px; }
.linkcard--list { box-shadow: 0 1px 2px rgba(48,51,48,.04), 0 4px 14px rgba(48,51,48,.05); }

/* Widget mockup */
.feature__visual--widget { flex-direction: column; gap: 20px; align-items: center; }
.widget {
  background: #fff; border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 12px 32px rgba(0,0,0,.06);
}
.widget--medium {
  width: 328px; height: 156px; display: grid; grid-template-columns: 116px 1fr;
  gap: 12px; align-items: stretch; padding: 10px 16px 10px 10px; overflow: hidden;
}
.widget__copy { min-width: 0; display: flex; flex-direction: column; padding: 6px 0 2px; }
.widget__head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.widget--medium .widget__head { margin-bottom: 6px; }
.widget__mark {
  width: 10px; height: 13px; display: inline-block; flex: 0 0 auto;
  background: var(--accent-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2014%2018%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%201.5h8c.83%200%201.5.67%201.5%201.5v13L7%2012.75%201.5%2016V3c0-.83.67-1.5%201.5-1.5Z%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%2014%2018%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M3%201.5h8c.83%200%201.5.67%201.5%201.5v13L7%2012.75%201.5%2016V3c0-.83.67-1.5%201.5-1.5Z%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.widget__mark--light {
  background: rgba(255,255,255,.82);
}
.widget__name { font-size: 12px; font-weight: 600; color: var(--accent-primary); }
.widget__body { font-size: 14px; line-height: 1.5; color: var(--fg-primary); }
.widget--medium .widget__body {
  font-family: var(--serif); font-size: 11.5px; line-height: 1.16; max-width: none;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.widget__date { font-size: 11px; color: var(--fg-muted); margin-top: 12px; }
.widget--medium .widget__date { margin-top: auto; color: var(--fg-muted); font-size: 10px; font-weight: 500; }
.widget__photo {
  object-fit: cover; display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.widget__photo--keepsake {
  width: 110px; height: 130px; border-radius: 13px; padding: 5px; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.08); transform: rotate(-2deg); align-self: center;
}
.widget--large {
  width: min(360px, 88vw); aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  border-radius: 28px; padding: 0; background: var(--fg-primary);
}
.widget__large-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.widget__large-shade {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 48%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 0 18px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.38), rgba(0,0,0,.72));
}
.widget__large-body {
  font-family: var(--serif); font-size: 17px; line-height: 1.2; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.widget__meta {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82);
}
.widget__meta span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Promise ===== */
.promise {
  padding: 110px 0; text-align: center;
  background: var(--accent-grad);
  position: relative; overflow: hidden;
}
.promise::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(239,254,228,.16), transparent 45%);
}
.promise__inner { position: relative; }
.promise .eyebrow { color: rgba(239, 254, 228, 0.85); }
.promise .section-title { margin-bottom: 22px; }
.promise__sub { color: rgba(239,254,228,.88); font-size: 18px; line-height: 1.6; max-width: 580px; margin: 0 auto 26px; }
.promise__soon {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .4px;
  color: var(--cta-text); border: 1px solid rgba(239,254,228,.4);
  padding: 8px 18px; border-radius: 9999px;
}

/* ===== Get ===== */
.get { padding: 110px 0; text-align: center; }
.get__icon {
  width: 92px; height: 92px; border-radius: 22px;
  filter:
    drop-shadow(0 0 1px rgba(48,51,48,.34))
    drop-shadow(0 8px 18px rgba(48,51,48,.20));
  margin-bottom: 26px;
}
.get .section-title { margin-bottom: 16px; }
.get__sub { font-size: 18px; color: var(--fg-secondary); max-width: 520px; margin: 0 auto 34px; line-height: 1.6; }
.get__fine { font-size: 13px; color: var(--fg-muted); margin-top: 18px; letter-spacing: .2px; }

/* ===== Footer ===== */
.footer { background: var(--surface-secondary); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__tag { font-family: var(--serif); font-size: 16px; color: var(--fg-secondary); }
.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 2px 0;
}
.footer__link {
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: color .15s ease;
}
.footer__link:hover { color: var(--accent-primary); }
.footer__copy { font-size: 13px; color: var(--fg-muted); }

/* ===== Legal pages ===== */
.legal {
  padding: 76px 0 110px;
}
.legal__header {
  max-width: 780px;
  margin: 0 auto 54px;
  text-align: center;
}
.legal__header .eyebrow { margin-bottom: 16px; }
.legal__header h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--fg-primary);
  margin-bottom: 18px;
}
.legal__lead {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.legal__effective {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--accent-secondary);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
}
.legal__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.legal__toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
}
.legal__toc-title {
  margin-bottom: 6px;
  color: var(--fg-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.legal__toc a {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease;
}
.legal__toc a:hover { color: var(--accent-primary); }
.legal__article {
  color: var(--fg-secondary);
  padding-left: 34px;
  border-left: 1px solid rgba(48, 51, 48, 0.1);
}
.legal__article h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--fg-primary);
  margin: 42px 0 12px;
  padding-top: 2px;
  scroll-margin-top: 96px;
}
.legal__article h2:first-of-type {
  margin-top: 0;
}
.legal__article p,
.legal__article li {
  font-size: 16.5px;
  line-height: 1.74;
}
.legal__article p + p { margin-top: 16px; }
.legal__article ul {
  margin: 14px 0 0 22px;
}
.legal__article li + li {
  margin-top: 10px;
}
.legal__article a {
  color: var(--accent-primary);
  font-weight: 500;
}
.legal__article .legal__button,
.legal__header .legal__button {
  color: var(--cta-text);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { max-width: 540px; }
  .hero__cta { align-items: center; }
  .trust { justify-content: center; }
  .why__grid { grid-template-columns: 1fr; }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature__text { order: 0; }
  .feature__text { text-align: center; }
  .feature__text p { margin-left: auto; margin-right: auto; }
  .legal__layout { grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
  .legal__toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 18px 0 24px;
    border-bottom: 1px solid rgba(48, 51, 48, 0.1);
  }
  .legal__toc-title { grid-column: 1 / -1; }
  .legal__article {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 560px) {
  .nav__links { display: none; }
  .hero { padding: 48px 0 64px; }
  .btn--large { font-size: 16px; padding: 0 24px; height: 56px; }
  .features { padding: 72px 0; }
  .feature { margin-bottom: 72px; }
  .legal { padding: 54px 0 76px; }
  .legal__header { text-align: left; margin-bottom: 34px; }
  .legal__lead { font-size: 17px; }
  .legal__toc { grid-template-columns: 1fr; }
  .legal__article h2 { font-size: 23px; }
  .legal__article p,
  .legal__article li { font-size: 16px; }
}
