/* Daybound site. Palette comes from the plugin icon and banner: deep teal, amber, white. */
:root {
  --ink: #082f37;
  --teal: #0f5a66;
  --teal-deep: #0b4a54;
  --amber: #f4a340;
  --amber-ink: #8a4b00;
  --paper: #eef3f3;
  --card: #ffffff;
  --text: #123038;
  --muted: #4a6269;
  --line: #c3d3d6;
  --link: #0f5a66;
  --hero-bg: #0b4650;
  --hero-text: #ffffff;
  --hero-muted: #d3eaee;
  --day-off: #d5dde0;
  --day-off-text: #5d7077;
  --focus: #0a6cff;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #061c21;
    --card: #0b2b33;
    --text: #e2f0f2;
    --muted: #9db8be;
    --line: #234a53;
    --link: #7fd0dc;
    --hero-bg: #082f37;
    --focus: #8ab8ff;
    --amber-ink: #f4a340;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.35rem var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #d3eaee; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; display: block; }
.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header .btn-small { margin-left: 0; }
@media (max-width: 820px) {
  .bar { gap: 8px 12px; }
  .brand { margin-right: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .main-nav ul { width: max-content; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; transition: transform .15s, background-color .15s, box-shadow .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 8px 16px; background: var(--amber); color: var(--ink); font-size: .95rem; }
.btn-small:hover, .btn-amber:hover { background: #ffb85c; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 #b86f12; }
.btn-amber:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-outline { border-color: var(--teal); color: var(--link); }
.btn-outline:hover { background: rgba(15,90,102,.08); }
@media (prefers-color-scheme: dark) {
  .btn-solid { background: var(--amber); color: var(--ink); }
  .btn-solid:hover { background: #ffb85c; }
  .btn-outline { border-color: var(--link); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { background-color: var(--hero-bg); background-image: linear-gradient(rgba(255,255,255,.05) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.05) 2px, transparent 2px); background-size: 44px 44px; color: var(--hero-text); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 800; max-width: 12ch; }
.hero h1::after { content: ""; display: block; width: 96px; height: 8px; border-radius: 4px; background: var(--amber); margin-top: 22px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--hero-muted); max-width: 52ch; margin: 26px 0 30px; }
.fine { color: var(--hero-muted); font-size: .92rem; margin: 18px 0 0; max-width: 52ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Calendar demo */
.demo { display: grid; gap: 16px; justify-items: center; }
.cal-card { background: #fff; color: #123038; width: min(100%, 420px); border-radius: 26px; padding: 0 22px 18px; box-shadow: 0 24px 50px rgba(0,0,0,.35); position: relative; transform: rotate(-3deg); transition: transform .4s ease; }
.cal-card:hover, .cal-card:focus-within { transform: rotate(0deg); }
.cal-head { background: var(--amber); color: var(--ink); margin: 0 -22px 14px; padding: 22px 22px 12px; border-radius: 26px 26px 0 0; position: relative; }
.ring { position: absolute; top: -14px; width: 16px; height: 36px; border-radius: 8px; background: #e9eef0; }
.ring:nth-of-type(1) { left: 22%; } .ring:nth-of-type(2) { right: 22%; }
.cal-title { margin: 0; font: 700 1.05rem var(--display); }
.cal-month { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; justify-items: center; }
.dow { font-size: .78rem; font-weight: 600; color: #4a6269; padding-bottom: 4px; }
.day { width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center; font: 600 .95rem var(--body); position: relative; cursor: pointer; background: var(--teal); color: #fff; transition: transform .15s, background-color .2s; }
.day:hover:not(:disabled) { transform: scale(1.08); background: var(--teal-deep); }
.day:disabled { cursor: not-allowed; }
.day-past { background: transparent; color: #7d9096; }
.day-lead { background: var(--day-off); color: var(--day-off-text); }
.day-closed { background: repeating-linear-gradient(135deg, var(--day-off) 0 4px, #e9eef0 4px 8px); color: var(--day-off-text); text-decoration: line-through; }
.day.is-today:not(.is-selected)::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--amber); border-radius: 50%; }
.day.is-selected { background: var(--amber); color: var(--ink); transform: scale(1.18); box-shadow: 0 6px 14px rgba(244,163,64,.55); animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.day.is-selected span { display: none; }
.day.is-selected::before { content: ""; width: 42%; height: 22%; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg) translate(1px, -2px); }
@keyframes pop { from { transform: scale(.7); } to { transform: scale(1.18); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; list-style: none; margin: 16px 0 0; padding: 0; font-size: .82rem; color: #4a6269; }
.legend li { display: flex; align-items: center; gap: 6px; }
.k { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.k-open { background: var(--teal); } .k-lead { background: var(--day-off); } .k-closed { background: repeating-linear-gradient(135deg, var(--day-off) 0 2px, #fff 2px 4px); outline: 1px solid var(--day-off); }
.cal-fallback { margin-top: 10px; border-radius: 10px; }

.ticket { width: min(100%, 420px); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.4); border-radius: 18px; padding: 16px 18px; min-height: 108px; }
.ticket p { margin: 0; }
.ticket-label { font-size: .85rem; color: var(--hero-muted); }
.ticket-date { font: 800 1.45rem/1.15 var(--display); }
.ticket-sub { font-size: .88rem; color: var(--hero-muted); margin-top: 4px !important; }
.stamp { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--amber); color: var(--amber); display: grid; place-items: center; text-align: center; font: 800 .82rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-14deg) scale(.4); opacity: 0; box-shadow: inset 0 0 0 4px var(--hero-bg), inset 0 0 0 6px var(--amber); }
.stamp span { max-width: 4.4em; }
.stamp.on { opacity: .95; transform: rotate(-14deg) scale(1); animation: thump .5s cubic-bezier(.2,1.4,.4,1); }
.stamp.still { animation: none; }
@keyframes thump { 0% { transform: rotate(-14deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-14deg) scale(1); } }
@media (max-width: 560px) { .cal-card { transform: none; padding-inline: 14px; } .cal-head { margin-inline: -14px; padding-inline: 16px; } .day { font-size: .85rem; } .stamp { width: 68px; height: 68px; font-size: .68rem; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; max-width: 20ch; }
.section-lede { max-width: 62ch; color: var(--muted); margin: 18px 0 0; font-size: 1.1rem; }
.tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin-inline: 0; }
.tear::before, .tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.tear::before { left: -12px; } .tear::after { right: -12px; }

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 8px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 2px dashed var(--line); }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; font: 800 1.2rem var(--display); margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .step-n { background: var(--amber); color: var(--ink); } }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
.aside-note { margin: 44px 0 0; padding: 16px 20px; border-left: 5px solid var(--amber); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; max-width: 70ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } .step, .step + .step { padding: 0; border: 0; } }

/* Comparison */
.table-scroll { margin-top: 36px; overflow-x: auto; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 1rem var(--display); background: var(--ink); color: #fff; }
.compare thead th:nth-child(n+2), .compare td { width: 170px; white-space: nowrap; }
.compare tbody th { font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.pro-row { background: rgba(244,163,64,.14); }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; }
.yes::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) center/70% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); flex: none; }
.no { color: var(--muted); font-weight: 500; }
.no::before { content: ""; width: 12px; height: 2px; background: var(--muted); flex: none; margin: 0 3px; }
@media (prefers-color-scheme: dark) { .yes::before { background-color: var(--amber); } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; margin-top: 40px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.shot img { border-radius: 8px; width: 100%; margin-inline: auto; }
.shot figcaption { font-size: .95rem; color: var(--muted); }
.shot-a, .shot-b { grid-column: span 6; } .shot-a img, .shot-b img { max-width: 520px; }
.shot-c, .shot-d, .shot-e { grid-column: span 12; }
.shot-c img { max-width: 1000px; } .shot-d img { max-width: 1200px; } .shot-e img { max-width: 1000px; }
@media (max-width: 720px) { .shot-a, .shot-b { grid-column: span 12; } .shots { gap: 18px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 1.5rem; }
.price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amt { font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 500; }
.plan-note { color: var(--muted); margin: 4px 0 22px; flex: 1; }
.trial-strip { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 20px; padding: 24px 28px; }
.trial-strip p { margin: 0; max-width: 52ch; color: #d3eaee; }
.trial-strip strong { color: #fff; }
.trial-strip .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.trial-strip .btn-outline:hover { background: rgba(255,255,255,.12); }
.fine-dark { color: var(--muted); font-size: .92rem; margin: 22px 0 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 34px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 700 1.15rem/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--link); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* Footer */
.site-footer { background: var(--ink); color: #d3eaee; padding-top: 56px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font: 800 1.6rem var(--display); color: #fff; margin: 0; }
.foot-note { margin: 8px 0 0; font-size: .95rem; max-width: 30ch; }
.site-footer h2 { font: 700 1rem var(--display); color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer p { margin: 0; }
.copy { margin-top: 40px !important; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.nf { padding-block: 96px; min-height: 60vh; }
.nf h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 14px; }

/* Legal pages */
.legal-body .lede { color: var(--muted); font-size: 1.15rem; max-width: none; margin: 0 0 1.2em; }
.legal-body thead th { background: var(--ink); color: #fff; }
.legal-body table { -webkit-overflow-scrolling: touch; }
.legal { padding-block: 56px 80px; }
.legal-body { max-width: 74ch; margin-inline: auto; }
.legal-body h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.legal-body .updated { color: var(--muted); margin: 10px 0 28px; }
.legal-body h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; scroll-margin-top: 80px; position: relative; }
.legal-body h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.legal-body .anchor { margin-left: .4em; text-decoration: none; opacity: 0; font-size: .8em; }
.legal-body h2:hover .anchor, .legal-body .anchor:focus { opacity: .7; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; }
.legal-body li { margin: .3em 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--card); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 8px; }
.toc-title { margin: 0 0 6px; font: 700 1rem var(--display); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 260px; }
.toc li { margin: .25em 0; break-inside: avoid; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cal-card { transform: none; }
  .stamp.on { opacity: .95; }
}

/* Language switch and hint */
.lang-switch ul { display: flex; list-style: none; margin: 0; padding: 3px; gap: 2px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.lang-switch a { display: block; padding: 5px 12px; border-radius: 999px; color: #d3eaee; text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.lang-switch a:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.site-header .lang-switch { margin-left: 0; }
.lang-hint { background: var(--amber); color: var(--ink); }
.lang-hint p { margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .95rem; }
.lang-hint a { color: var(--ink); font-weight: 700; }
.lang-hint button { margin-left: auto; background: transparent; border: 1px solid var(--ink); color: var(--ink); border-radius: 8px; padding: 4px 12px; font: 600 .85rem var(--body); cursor: pointer; }
.nf-other { margin-top: 28px; padding-top: 18px; border-top: 2px dashed var(--line); max-width: 60ch; }
@media (max-width: 520px) { .bar-cta { display: none; } }
@media (min-width: 521px) { .main-nav { margin-left: auto; } }
html:lang(es) .hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 5.2vw, 4rem); }
