/* DayHats landing. Plain CSS, no build step. */

:root {
  --deep: #073f3c;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --brand: #0f766e;
  --brand-dark: #0b5e58;
  --mint: #5ee6cd;
  --mint-ink: #053b37;
  --tint: #ecfdf8;

  --c-computer: #2f7cf6;
  --c-home: #1fbf8f;
  --c-calls: #7c4df2;
  --c-study: #f5a623;
  --c-out: #f2554b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 12px 32px rgb(15 23 42 / 8%);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--mint);
  color: var(--mint-ink);
  box-shadow: 0 8px 24px rgb(94 230 205 / 30%);
}

.btn-primary:hover {
  background: #8ef0dd;
  transform: translateY(-1px);
}

.btn-ghost {
  color: inherit;
  border: 1.5px solid currentColor;
  opacity: 0.9;
}

.btn-ghost:hover {
  opacity: 1;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(7 63 60 / 94%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 10px;
  background: #f4fbf9;
}

.brand-name span {
  color: var(--mint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav > a:not(.btn) {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav > a:not(.btn):hover {
  color: #fff;
}

@media (max-width: 760px) {
  .nav {
    gap: 12px;
  }

  .nav > a:not(.btn) {
    display: none;
  }
}

.site-header .btn {
  white-space: nowrap;
}

/* Language switcher (kept in step by landing/i18n.mjs) */

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: #fff;
  border-color: rgb(255 255 255 / 55%);
}

.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(4 42 40 / 28%);
}

.lang-switch a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-switch a:hover {
  background: #e6f6f2;
}

.lang-switch a[aria-current] {
  color: #0f766e;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, rgb(94 230 205 / 22%), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgb(15 118 110 / 45%), transparent 70%),
    var(--deep);
  color: #fff;
  padding: 72px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--mint), #b9f6e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.hero-notes li::before {
  content: "✓";
  color: var(--c-home);
  font-weight: 800;
  margin-right: 6px;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* App mockup (pure HTML/CSS illustration of the Today view) */

.mockup {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  background: #f8fafc;
  color: var(--ink);
  border-radius: 36px;
  padding: 14px;
  border: 8px solid #0a524e;
  box-shadow: 0 40px 80px rgb(0 0 0 / 45%);
  font-size: 15px;
}

.mockup-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 12px;
  font-weight: 700;
}

.mockup-bar small {
  color: var(--muted);
  font-weight: 600;
}

.slot-card {
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-computer), #1b5fd0);
  margin-bottom: 12px;
}

.slot-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-weight: 700;
}

.slot-card .name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2px 0;
}

.slot-card .time {
  opacity: 0.9;
  font-weight: 600;
}

.progress {
  height: 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 30%);
  margin-top: 12px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.task .check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
}

.task.done .check {
  border-color: var(--c-home);
  background: var(--c-home);
  box-shadow: inset 0 0 0 3px #fff;
}

.task.done .title {
  text-decoration: line-through;
  color: #94a3b8;
}

.task .title {
  flex: 1;
  font-weight: 600;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.tag.urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.next-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 600;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-home);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}

@media (max-width: 700px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.section-alt .card {
  background: var(--bg);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: #fff;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.bg-computer {
  background: var(--c-computer);
}

.bg-home {
  background: var(--c-home);
}

.bg-calls {
  background: var(--c-calls);
}

.bg-study {
  background: var(--c-study);
}

.bg-out {
  background: var(--c-out);
}

.bg-deep {
  background: var(--deep);
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-top: 64px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.steps li.card {
  padding-top: 84px;
}

/* Week timeline */

.week {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.week-grid {
  display: grid;
  grid-template-columns: 64px repeat(5, minmax(96px, 1fr));
  grid-template-rows: auto repeat(6, 56px);
  gap: 6px;
  min-width: 600px;
}

.week-grid .day {
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.week-grid .hour {
  color: #94a3b8;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.block {
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  line-height: 1.25;
}

.block small {
  display: block;
  font-weight: 600;
  opacity: 0.85;
}

.block.now {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

/* Feature list */

.feature h3 {
  margin-bottom: 6px;
}

/* Audience */

.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}

/* Comparison table */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--muted);
}

.compare thead th.us {
  color: var(--brand-dark);
}

.compare td.us {
  background: var(--tint);
  font-weight: 600;
}

.compare tr:last-child td,
.compare tr:last-child th {
  border-bottom: 0;
}

/* FAQ */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  position: relative;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--muted);
}

/* Final CTA */

.cta {
  background:
    radial-gradient(70% 90% at 50% 0%, rgb(94 230 205 / 25%), transparent 70%),
    var(--deep);
  color: #fff;
  text-align: center;
}

.cta p {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 36em;
  margin: 0 auto 28px;
}

/* Footer */

.site-footer {
  background: #042a28;
  color: #94a3b8;
  padding: 48px 0;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Legal pages */

.legal {
  padding: 56px 0 88px;
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2em;
}

.legal h3 {
  margin-top: 1.5em;
}

.legal .updated {
  color: var(--muted);
}

.legal ul,
.legal ol {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface);
}

.legal .table-scroll {
  overflow-x: auto;
}

.legal .summary {
  background: var(--tint);
  border: 1px solid #a7f3e0;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.legal .summary ul {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cookie banner (analytics.js) */

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #cbd5e1;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: #fff;
  text-decoration: underline;
}

.link-button[hidden] {
  display: none;
}

.legal .link-button {
  color: var(--brand);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: var(--brand);
}

.cookie-banner-settings {
  margin-top: 16px;
}

.cookie-banner-settings[hidden] {
  display: none;
}

.cookie-option {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.cookie-option-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.cookie-option-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.cookie-option-row input:disabled {
  cursor: not-allowed;
}

.cookie-option-row strong {
  display: block;
  color: var(--ink);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.cookie-banner-actions [hidden] {
  display: none;
}

/* Same look for every choice, so none is easier to pick than the others. */
.btn-choice {
  flex: 1 1 120px;
  border: 1.5px solid var(--brand);
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
  font-family: inherit;
}

.btn-choice:hover {
  background: var(--tint);
}

/* Note on translated legal pages: the Spanish text is the original. */

.legal .translation-note {
  margin: -8px 0 28px;
  padding: 12px 16px;
  border-left: 3px solid var(--mint);
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.95rem;
}
