/* Present Days — presentdays.app
   Ported from design/screenstreak/project/Present Days Home.dc.html */

* { box-sizing: border-box; }

:root {
  --bg: #f4f6f7;
  --panel: #fafbfb;
  --ink: #2b3037;
  --body: #5b6570;
  --muted: #8a939c;
  --faint: #9aa3ac;
  --line: #e1e6e9;
  --teal: #2f8f7e;
  --teal-deep: #226f61;
  --teal-wash: #e6f2ef;
  --teal-bright: #6fc7b6;
  --dark: #222a33;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --serif: 'Newsreader', 'New York', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,247,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,218,222,0.6);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 17px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand span { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links .nav-link { font-size: 14.5px; font-weight: 500; color: var(--body); }
.nav-links .nav-link:hover { color: var(--ink); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
}
.btn-pill:hover { background: #3b434b; }

/* ---------- App Store button ---------- */

.btn-appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 15px 26px; border-radius: 14px;
  transition: background 0.15s ease;
}
.btn-appstore:hover { background: #3b434b; }
.btn-appstore .lines { display: flex; flex-direction: column; line-height: 1.1; }
.btn-appstore .small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.7); }
.btn-appstore .big { font-size: 17px; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 84px 32px 96px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--teal-wash); margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-badge span:last-child { font-size: 12.5px; font-weight: 600; color: var(--teal-deep); letter-spacing: 0.01em; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 76px; line-height: 0.98; letter-spacing: -0.02em; margin: 0;
}
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--body);
  margin: 26px 0 0; max-width: 40ch;
}
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 38px; flex-wrap: wrap; }
.hero-price { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero-phone { display: flex; justify-content: center; }

/* ---------- Phone mock ---------- */

.phone-shadow { filter: drop-shadow(0 40px 70px rgba(40,50,60,0.22)); width: 268px; height: 582px; }
.phone-scale { transform: scale(0.667); transform-origin: top left; width: 402px; height: 874px; }

.device {
  width: 402px; height: 874px; border-radius: 48px; overflow: hidden;
  position: relative; background: #f7f9fa;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
}
.device .island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 50;
}
.device .statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; gap: 154px; align-items: center; justify-content: center;
  padding: 21px 24px 19px;
}
.device .statusbar .sb-half { flex: 1; height: 22px; display: flex; align-items: center; justify-content: center; }
.device .statusbar .sb-time {
  padding-top: 1.5px;
  font-family: -apple-system, 'SF Pro', system-ui, sans-serif;
  font-weight: 590; font-size: 17px; line-height: 22px; color: #000;
}
.device .statusbar .sb-icons { gap: 7px; padding-top: 1px; padding-right: 1px; }
.device .home-indicator {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 60;
  height: 34px; display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: 8px; pointer-events: none;
}
.device .home-indicator span { width: 139px; height: 5px; border-radius: 100px; background: rgba(0,0,0,0.25); }

.screen {
  height: 100%; background: #f7f9fa;
  padding: 60px 24px 30px;
  display: flex; flex-direction: column;
  font-family: var(--sans);
}
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-top .app-brand { display: flex; align-items: center; gap: 7px; }
.screen-top .app-brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.screen-top .settings-dot {
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(40,50,60,0.08);
  display: flex; align-items: center; justify-content: center;
}
.streak-block { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.streak-num {
  font-family: var(--serif); font-size: 112px; line-height: 0.86;
  font-weight: 500; color: var(--ink); letter-spacing: -0.02em;
}
.streak-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); margin-top: 12px; white-space: nowrap;
}
.status-pill {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--teal-wash); color: var(--teal-deep);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.cal-card {
  margin-top: 24px; background: #fff; border-radius: 22px;
  padding: 20px 18px 18px;
  box-shadow: 0 1px 2px rgba(40,50,60,0.04), 0 12px 30px rgba(40,50,60,0.05);
}
.cal-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cal-card-head .month { font-size: 16px; font-weight: 600; color: var(--ink); }
.cal-card-head .year { font-size: 12px; color: #aab2bb; font-family: var(--mono); }

.screen-stats { margin-top: auto; display: flex; gap: 12px; padding-top: 22px; }
.stat-card {
  flex: 1; background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(40,50,60,0.04);
}
.stat-card.with-icon { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.stat-value { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 4px; }

/* ---------- Streak calendar (shared by phone + widget) ---------- */

.cal { font-family: var(--sans); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: #aab2bb; }
.cal-weeks { display: flex; flex-direction: column; gap: 3px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .c {
  aspect-ratio: 1 / 1; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cal .c svg { width: 52%; height: 52%; }
.cal .fut { font-size: 14px; font-weight: 500; color: #c7cdd3; }
.cal .today-safe {
  position: absolute; inset: 9%; border-radius: 50%;
  border: 1.5px solid var(--teal); background: var(--teal-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
}

/* ---------- Manifesto band ---------- */

.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.manifesto-inner { max-width: 880px; margin: 0 auto; padding: 64px 32px; }
.manifesto p {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.4; letter-spacing: -0.01em;
  margin: 0; color: var(--ink); text-wrap: pretty;
}
.manifesto p span { color: var(--muted); }

/* ---------- Section scaffolding ---------- */

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 14px; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 42px; line-height: 1.06; letter-spacing: -0.01em; margin: 0;
}

/* ---------- How it works ---------- */

.how { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }
.how .section-title { margin-bottom: 56px; max-width: 18ch; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-card {
  background: #fff; border-radius: 22px; padding: 32px 30px;
  box-shadow: 0 1px 2px rgba(40,50,60,0.04), 0 18px 40px rgba(40,50,60,0.04);
}
.how-visual {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 116px; margin-bottom: 28px; gap: 9px;
}
.how-visual .big-time { font-family: var(--serif); font-size: 52px; font-weight: 500; color: var(--ink); }
.how-visual .warn-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  background: #f6ecdb; color: #9c6716; font-size: 15px; font-weight: 600;
}
.how-visual .warn-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #c98a2b; }
.how-visual .mini-count {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.6px solid var(--teal); background: var(--teal-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--teal-deep);
}
.how-step { font-family: var(--mono); font-size: 12px; color: var(--teal); margin-bottom: 10px; }
.how-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.how-card p { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0; }

/* ---------- Widget / share (dark) ---------- */

.dark-band { background: var(--dark); color: #eef1f3; }
.dark-inner {
  max-width: 1120px; margin: 0 auto; padding: 96px 32px;
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center;
}
.dark-band .kicker { color: var(--teal-bright); margin-bottom: 16px; }
.dark-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 20px; color: var(--bg);
}
.dark-band .dark-copy { font-size: 17px; line-height: 1.6; color: rgba(238,241,243,0.66); margin: 0 0 22px; max-width: 44ch; }
.dark-band .dark-copy:last-child { margin-bottom: 0; }
.widget-wrap { display: flex; justify-content: center; }
.widget-card {
  width: 360px; background: #1a212a; border-radius: 26px; padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.widget-head .wb { display: flex; align-items: center; gap: 8px; }
.widget-head .wb span { font-size: 13px; font-weight: 600; color: #eef1f3; }
.widget-head .wdate { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.widget-streak { text-align: center; margin-bottom: 22px; }
.widget-streak .num { font-family: var(--serif); font-size: 92px; line-height: 0.86; font-weight: 500; color: var(--bg); }
.widget-streak .label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.42); margin-top: 12px;
}
.widget-streak .goal { font-size: 14px; color: var(--teal-bright); margin-top: 7px; }
.widget-cal-inset { background: #f7f9fa; border-radius: 18px; padding: 16px 16px 14px; }

/* ---------- Privacy ---------- */

.privacy { max-width: 1120px; margin: 0 auto; padding: 100px 32px; }
.privacy-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.privacy-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--teal-wash); margin-bottom: 28px;
}
.privacy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 22px; text-wrap: pretty;
}
.privacy p { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0 auto; max-width: 50ch; text-wrap: pretty; }
.privacy-chips { display: flex; justify-content: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.privacy-chips span {
  font-size: 14px; font-weight: 500; color: #3b434b;
  background: #fff; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px;
}

/* ---------- Pricing ---------- */

.pricing { background: var(--panel); border-top: 1px solid var(--line); }
.pricing-inner { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }
.pricing-head { text-align: center; margin-bottom: 56px; }
.pricing-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px;
}
.pricing-head p { font-size: 17px; line-height: 1.55; color: var(--body); margin: 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 28px; text-align: center;
}
.price-card .tier { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.price-card .amount { font-family: var(--serif); font-size: 50px; font-weight: 500; color: var(--ink); margin: 16px 0 4px; }
.price-card .per { font-size: 14px; color: var(--muted); }
.price-card.featured { background: var(--ink); border-color: var(--ink); position: relative; }
.price-card.featured .tier { color: var(--teal-bright); }
.price-card.featured .amount { color: #fff; }
.price-card.featured .per { color: rgba(238,241,243,0.6); }
.price-card .flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--teal);
  padding: 5px 12px; border-radius: 999px;
}
.pricing-cta { text-align: center; margin-top: 48px; }
.pricing-cta .btn-appstore { padding: 15px 28px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #eef1f3; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 32px 40px; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 30ch; }
.footer-brand .fb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .fb span { font-size: 16px; font-weight: 600; color: var(--bg); }
.footer-brand p { font-size: 14.5px; line-height: 1.55; color: rgba(238,241,243,0.55); margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .col-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(238,241,243,0.4); margin-bottom: 2px;
}
.footer-col a { font-size: 14.5px; color: rgba(238,241,243,0.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 24px;
}
.footer-bottom span { font-family: var(--mono); font-size: 12px; color: rgba(238,241,243,0.4); }

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 72px 32px 96px; }
.legal h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 48px; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 12px;
}
.legal .effective { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 40px; }
.legal .lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.legal h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #3b434b; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal-deep); border-bottom: 1px solid rgba(47,143,126,0.35); }
.legal a:hover { border-bottom-color: var(--teal-deep); }
.legal .divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }

/* ---------- 404 ---------- */

.notfound { max-width: 720px; margin: 0 auto; padding: 120px 32px 140px; text-align: center; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: 64px; margin: 24px 0 12px; letter-spacing: -0.01em; }
.notfound p { font-size: 18px; color: var(--body); margin: 0 0 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 56px 32px 72px; gap: 48px; }
  .hero h1 { font-size: clamp(48px, 9.5vw, 68px); }
  .hero-phone { order: 2; }
  .dark-inner { grid-template-columns: 1fr; gap: 48px; padding: 72px 32px; }
  .section-title, .pricing-head h2, .privacy h2, .dark-band h2 { font-size: clamp(31px, 5.5vw, 42px); }
  .how { padding: 72px 32px; }
  .privacy { padding: 80px 32px; }
  .pricing-inner { padding: 72px 32px; }
}

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .price-card.featured { order: -1; }
}

@media (max-width: 640px) {
  .wrap, .nav-inner, .hero, .manifesto-inner, .how, .dark-inner, .privacy, .pricing-inner, .footer-inner, .legal { padding-left: 22px; padding-right: 22px; }
  .nav-links { gap: 0; }
  .nav-links .nav-link { display: none; }
  .manifesto p { font-size: 23px; }
  .hero-sub { font-size: 17px; }
  .widget-card { width: 100%; max-width: 360px; }
  .legal h1 { font-size: 38px; }
  .footer-cols { gap: 40px; }
}
