/* Dayring website. Tokens and sizes follow docs/DESIGN.md and prototypes/Site, Support, Legal. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #F3F2EF;
  --surface: #FFFFFF;
  --ink: #1F2A2E;
  --text-secondary: #4A5357;
  --text-caption: #5B6468;
  --accent: #2E6B63;
  --accent-hover: #1F4C46;
  --accent-on-dark: #4FA393;
  --track: #DCDFDE;
  --dashed: #9AA2A5;
  --dark-ground: #1B2326;
  --dark-surface: #2C363A;
  --rule: #E4E5E1;
  --rule-soft: #ECEBE7;
  --border: #D3D7D6;
  --warn-fill: #F6E6D3;
  --warn-border: #C27A34;
  --display: "Space Grotesk", Manrope, sans-serif;
  --body: Manrope, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; }
h3 { margin: 0; }
p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 10;
}
.skip-link:focus { left: 16px; color: #FFFFFF; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 900px; }
.wrap--legal { max-width: 820px; }
.band { background: var(--surface); }

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.brand:hover { color: var(--ink); }

/* The logo: a small three-segment ring, two filled. */
.brand-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--ground) 0deg 4deg, var(--accent) 4deg 116deg, var(--ground) 116deg 124deg,
    var(--accent) 124deg 236deg, var(--ground) 236deg 244deg, #C9CECD 244deg 356deg, var(--ground) 356deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-ring::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ground);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 11px 18px;
}
.site-nav .nav-cta:hover { color: #FFFFFF; background: #2B393E; }

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.04; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-secondary); max-width: 520px; }
.price-note { font-size: 14px; color: var(--text-caption); }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.download {
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
}
.download--soon { background: var(--ink); color: #FFFFFF; }
.download--later {
  border: 1.5px dashed var(--dashed);
  color: var(--text-secondary);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
}

.hero-device { flex: 1 1 320px; display: flex; justify-content: center; }
.phone {
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: var(--ink);
  padding: 12px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ground);
  padding: 44px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.phone-heading { align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.phone-day { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-caption); }
.phone-title { font-family: var(--display); font-size: 26px; font-weight: 600; }
.ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--ground) 0deg 3deg, var(--accent) 3deg 117deg, var(--ground) 117deg 123deg,
    var(--accent) 123deg 237deg, var(--ground) 237deg 243deg, var(--track) 243deg 357deg, var(--ground) 357deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-center {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ring-count { font-family: var(--display); font-size: 40px; font-weight: 600; }
.ring-total { font-size: 18px; color: var(--text-caption); }
.ring-next { font-size: 13px; color: var(--text-secondary); }
.phone-button {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  border-radius: 26px;
  background: var(--ink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}

/* Sections */

.section { padding-top: 80px; padding-bottom: 80px; }
.section h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.1; }
.section-body { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-32 { gap: 32px; } .gap-44 { gap: 44px; }
.measure-640 { max-width: 640px; } .measure-680 { max-width: 680px; } .measure-700 { max-width: 700px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > .stack { flex: 1 1 420px; }

.lock-screen {
  flex: 1 1 360px;
  background: var(--dark-ground);
  border-radius: 28px;
  padding: 32px 22px;
}
.notification {
  background: var(--dark-surface);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ground);
}
.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-icon::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--accent-on-dark);
}
.notification-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notification-meta { display: flex; justify-content: space-between; font-size: 13px; color: #B5BDC0; }
.notification-meta strong { font-weight: 600; }
.notification-title { font-size: 16px; font-weight: 700; }
.notification-body { font-size: 14px; color: #D3D8DA; }

/* Plus */

.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.compare th { padding: 14px 12px; border-bottom: 2px solid var(--ink); }
.compare th:first-child { text-align: left; }
.compare th:not(:first-child) { text-align: center; width: 120px; }
.compare th.plus-col { color: var(--accent); }
.compare td { padding: 13px 12px; border-bottom: 1px solid var(--rule); }
.compare td:nth-child(2) { text-align: center; color: var(--text-secondary); }
.compare td:nth-child(3) { text-align: center; font-weight: 700; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-name { font-size: 15px; font-weight: 700; }
.price-amount { font-family: var(--display); font-size: 32px; font-weight: 600; }
.price-detail { font-size: 14px; color: var(--text-caption); }

.strong-link { font-size: 16px; font-weight: 700; }

/* Footer */

.site-footer { background: var(--ink); color: #D3D8DA; }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ground); }
.site-footer a:hover { color: #FFFFFF; }

/* Support */

.page-main { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.05; }
.page-lede { font-size: 18px; line-height: 1.55; color: var(--text-secondary); }

.contact-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.contact-title { font-size: 18px; font-weight: 700; display: block; }
.contact-note { font-size: 15px; color: var(--text-secondary); display: block; }
.contact-button {
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 24px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
}
.contact-button:hover { background: var(--accent-hover); color: #FFFFFF; }

.faq-heading { font-size: 28px; }
.faqs { background: var(--surface); border-radius: 22px; }
.faq { border-bottom: 1px solid var(--rule-soft); }
.faq:last-child { border-bottom: none; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--text-caption); font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 22px 18px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

.emergency {
  border: 1.5px solid var(--warn-border);
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.emergency strong { color: var(--ink); }

/* Privacy and terms */

.legal-main { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 48px; }
.legal-note {
  background: var(--warn-fill);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #5A3410;
}
.legal-section { display: flex; flex-direction: column; gap: 24px; }
.legal-section + .legal-section { border-top: 1px solid var(--border); padding-top: 48px; }
.legal-section h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.08; }
.legal-section h2 { font-family: var(--body); font-size: 20px; font-weight: 700; }
.legal-item { display: flex; flex-direction: column; gap: 8px; }
.legal-item p, .legal-item li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.legal-item ul { margin: 0; padding-left: 22px; }

/* Phones */

@media (max-width: 520px) {
  .hero { padding-top: 24px; gap: 40px; }
  .phone { transform: scale(0.9); transform-origin: top center; margin-bottom: -60px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
