/* DayBay isolated presentation refinement. Original copy and assets retained. */
@font-face {
  font-family: "DayBay Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fcfbf7;
  --surface: #fffefb;
  --ink: #203e3b;
  --secondary: #4d6964;
  --action: #175f57;
  --action-hover: #104b44;
  --mint: #e8f0e8;
  --parchment: #f3eee3;
  --line: #d7dfd8;
  --selection: #d5e8d8;
  --body-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --display-font: "DayBay Newsreader", Georgia, var(--body-font);
  --page-width: 73rem;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(4rem, 7vw, 6.5rem);
  --radius: 1rem;
  --product-shadow: 0 18px 36px -22px rgb(32 62 59 / 35%);
  font-family: var(--body-font);
  font-size: 100%;
  scrollbar-color: #91afa1 var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
::selection { background: var(--selection); color: var(--ink); }
main, footer, .site-header { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main { min-width: 0; }
p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
h2 { margin: 0 0 1.5rem; max-width: 28ch; font-size: clamp(1.65rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.5; letter-spacing: -.025em; }
h3 { margin: 0 0 .75rem; font-size: 1.125rem; font-weight: 600; line-height: 1.6; }
:lang(en) h2, :lang(es) h2 { font-family: var(--display-font); font-weight: 500; line-height: 1.2; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--action); outline-offset: 5px; border-radius: .2rem; }
a:active { color: var(--action-hover); }
img { max-width: 100%; height: auto; }
section { margin-block-end: var(--section-space); scroll-margin-block-start: 1.5rem; }
.skip-link { position: absolute; z-index: 10; inset-block-start: .75rem; inset-inline-start: .75rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-220%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1rem; border-block-end: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.identity .app-icon { display: block; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .65rem; }
.brand { margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.5; }
.languages { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem; margin: 0; margin-inline-start: auto; max-width: 100%; }
.languages a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .25rem .5rem; font-size: .875rem; text-decoration: none; border-radius: .5rem; }
.languages a[aria-current="page"] { background: var(--mint); color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }

.hero { display: grid; gap: 2rem; padding-block: 2.5rem; }
.hero-copy { align-self: center; min-width: 0; }
.hero h1 { margin-block-end: 1.5rem; font-family: var(--display-font); font-size: clamp(4rem, 7vw, 6rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.hero h1 > span { display: block; max-width: 21ch; margin-block-start: 1rem; font-family: var(--body-font); font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.5; letter-spacing: -.03em; }
.hero h1 .heading-phrase { display: inline-block; max-width: 100%; }
.hero:lang(en) h1 > span, .hero:lang(es) h1 > span { font-family: var(--display-font); font-size: clamp(2rem, 3.1vw, 2.8rem); line-height: 1.15; }
.lead { color: var(--secondary); font-size: 1rem; line-height: 1.9; }
.download { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 100%; min-height: 52px; margin-block: .5rem 1rem; padding: .85rem 1.25rem; border-radius: .65rem; background: var(--action); color: var(--surface); font-size: 1rem; font-weight: 600; line-height: 1.6; text-decoration: none; transition: background-color 160ms ease-out; }
.download svg { width: 1.2rem; height: 1.2rem; flex: none; }
.download span { min-width: 0; }
.download:active { background: var(--action-hover); color: var(--surface); }
.store-note { max-width: 48ch; margin: 0; color: var(--secondary); font-size: .875rem; line-height: 1.8; }
.hero-art { position: relative; align-self: center; aspect-ratio: .94; min-width: 0; width: 100%; overflow: hidden; background: var(--mint); border-radius: var(--radius); }
.product-window { position: absolute; inset-inline-start: 7%; inset-block-start: 4%; width: 47%; aspect-ratio: 488 / 1013; overflow: hidden; border-radius: clamp(.8rem, 2vw, 1.5rem); box-shadow: var(--product-shadow); background: #f0f8f7; }
.product-window img { position: absolute; width: 122.54%; max-width: none; height: auto; inset-inline-start: -11.27%; inset-block-start: -28.33%; }
.task-window { position: absolute; inset-inline-end: 6%; inset-block-start: 35%; width: 44%; aspect-ratio: 500 / 766; overflow: hidden; border-radius: var(--radius); box-shadow: var(--product-shadow); background: var(--surface); }
.task-window img { position: absolute; width: 119.6%; max-width: none; height: auto; inset-inline-start: -8.8%; inset-block-start: -47%; }

.contents { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding-block: .75rem; margin-block-end: var(--section-space); border-block: 1px solid var(--line); }
.contents a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.contents a::after { content: ""; width: .35rem; height: .35rem; margin-inline-start: .7rem; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }
.features { display: grid; gap: 1.5rem; }
.feature { min-width: 0; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.feature p { margin: 0; color: var(--secondary); }
#screenshots > p { margin-block-end: 2rem; color: var(--secondary); }
.screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2.4vw, 2rem); }
figure { min-width: 0; margin: 0; }
.screenshot-link { display: block; border-radius: var(--radius); cursor: zoom-in; }
.screenshots img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
figcaption { margin-block-start: 1rem; font-size: .875rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.home-page #start { padding: 1.5rem; background: var(--parchment); border-radius: var(--radius); }
.steps { max-width: 62ch; padding-inline-start: 1.75rem; margin-block: 1.5rem; }
.steps li { padding-inline-start: .75rem; margin-block-end: 1.5rem; }
.steps li::marker { color: var(--action); font-family: var(--display-font); font-size: 1.35em; font-weight: 500; }
.steps strong { font-weight: 600; }
.touch-target, main > a, a[href^="mailto:"] { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding-block: .35rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.5rem; gap: 1rem 1.75rem; }
.facts div { min-width: 0; padding-block: 1rem; border-block-start: 1px solid var(--line); }
dt { color: var(--secondary); font-size: .875rem; }
dd { margin: .5rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.faq { max-width: 58rem; }
.question { padding-block: 1.5rem; border-block-start: 1px solid var(--line); }
.question h3 { max-width: 32ch; }
.question p:last-child { margin: 0; }
.question-answer { min-width: 0; }
.rename { max-width: 58rem; padding-block-start: 2rem; border-block-start: 1px solid var(--line); }
.rename h2 { font-size: 1.375rem; }
.rename p { color: var(--secondary); }
footer { padding-block: 1.5rem 2.5rem; border-block-start: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-block-end: 1rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
footer p { margin-block-end: .5rem; font-size: .875rem; color: var(--secondary); }

/* Supporting surfaces keep the same calm reading system and original content. */
.support-page main { max-width: 48rem; padding-block: 2.5rem 4rem; }
.help > a:first-child { margin-block-end: 1.5rem; }
.help h1 { font-family: var(--display-font); margin-block-end: 2rem; }
.help h2 { max-width: 32ch; margin-block: 3rem 1rem; font-size: clamp(1.4rem, 2.5vw, 1.85rem); scroll-margin-block-start: 1.5rem; }
.help nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-block: 1.5rem 2rem; padding-block: .75rem; border-block: 1px solid var(--line); }
.help nav a { display: inline-flex; align-items: center; min-height: 44px; }
.help li { margin-block-end: .75rem; padding-inline-start: .25rem; }
.help ul, .help ol { padding-inline-start: 1.5rem; }
.invite-help { max-width: 42rem; margin-block: clamp(2rem, 6vw, 5rem); padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--mint); border-radius: var(--radius); }
.invite-help h1 { font-family: var(--display-font); font-size: clamp(2rem, 4vw, 3.25rem); margin-block-end: 1.5rem; }
.invite-help p { color: var(--secondary); }
.invite-help .download { margin-block: .75rem; }
.invite-help a:not(.download) { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: .35rem; }
.invite-page footer { max-width: 62rem; }

@media (min-width: 40rem) {
  .hero { padding-block: 3rem; }
  .hero-art { max-width: 32rem; justify-self: center; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .home-page #start { padding: 2.5rem; }
  figcaption { font-size: 1rem; }
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(2.5rem, 5vw, 5rem); padding-block: 4rem; }
  .hero-art { max-width: none; }
  .lead { font-size: 1.0625rem; }
  .contents { justify-content: space-between; }
  .question { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; padding-block: 2rem; }
  .question h3 { margin: 0; }
  .home-page #start { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 3rem; padding: 3rem; }
  .home-page #start h2 { margin: 0; grid-row: span 2; align-self: start; }
  .home-page #start .steps { margin: 0; }
  .home-page #start > p { grid-column: 2; margin: 0; }
}
@media (max-width: 26rem) {
  .identity { gap: .5rem; }
  .brand { font-size: .75rem; }
  .site-header { gap: .5rem; }
  .languages { margin-inline-start: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .hero h1 > span { letter-spacing: -.015em; }
  .home-page #start, .invite-help { padding: min(1.5rem, 5vw); }
  .download { padding-inline: 1rem; }
  .download svg { display: none; }
}
@media (hover: hover) {
  .download:hover { background: var(--action-hover); color: var(--surface); }
  .languages a:hover { background: var(--mint); }
  .contents a:hover { text-decoration: underline; }
  .screenshot-link:hover { outline: 2px solid var(--action); outline-offset: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
@media (forced-colors: active) {
  .download { border: 1px solid ButtonText; }
  .languages a[aria-current="page"] { outline: 1px solid currentColor; }
}
@media print {
  .site-header, .contents, .download, .skip-link, footer nav, .hero-art { display: none; }
  body { background: white; color: black; }
  main, footer { width: 100%; }
  .hero, .home-page #start, .question { display: block; }
  section { break-inside: avoid; margin-block-end: 2rem; }
  a { color: inherit; }
}
