/*
 * cerisean.com, the website of Cerisean and Cerisean Timetables (2026-10-12). Separate from the
 * app at app.cerisean.com.
 *
 * Always light, whatever the visitor's own setting: a warm off-white page and near-black text,
 * Source Serif 4 for headings and Inter for the text, the app's own two faces, served from this
 * site. Navy for actions, cerise for the mark and little else. No script. Written for a phone
 * first; wider screens add columns.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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;
}

/* The rupee sign, and the rest of Latin Extended: the same face's second file (2026-10-12). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-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;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --page: oklch(0.982 0.006 80);
  --raised: oklch(0.996 0.003 80);
  --line: oklch(0.87 0.009 70);
  --hairline: oklch(0.915 0.008 70);
  --ink: oklch(0.2 0.012 60);
  --ink-2: oklch(0.39 0.012 60);
  --muted: oklch(0.5 0.012 60);
  --action: oklch(0.33 0.095 263);
  --action-hover: oklch(0.27 0.09 263);
  --on-action: oklch(0.985 0.004 80);
  --link: oklch(0.36 0.11 263);
  --cerise: oklch(0.55 0.2 8);
  --bezel: oklch(0.2 0.01 60);
  --frame-bar: oklch(0.955 0.006 75);
  --shadow: 0 1px 2px oklch(0.2 0.02 60 / 0.06), 0 18px 48px -12px oklch(0.2 0.02 60 / 0.18);
  --ph-wash: oklch(0.935 0.075 95);
  --ph-line: oklch(0.66 0.13 75);
  --ph-ink: oklch(0.34 0.08 60);
  --focus: oklch(0.55 0.2 8);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 36rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

/* --- placeholders: anything not decided yet -------------------------------------------- */

.ph {
  padding: 0 0.3em;
  border: 1px dashed var(--ph-line);
  border-radius: 4px;
  background: var(--ph-wash);
  color: var(--ph-ink);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- header ---------------------------------------------------------------------------- */

.top {
  border-bottom: 1px solid var(--hairline);
}

.top .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand demo"
    "nav nav";
  align-items: center;
  column-gap: 12px;
  padding-top: 12px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mark-tile {
  fill: var(--cerise);
}

.top .demo {
  grid-area: demo;
}

.nav {
  grid-area: nav;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 4px -8px 0;
  font-size: 0.9375rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 639px) {
  .top .demo {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.875rem;
  }
}

/* Below 360 px the brand and the button do not fit on one line; the first screen has its own. */
@media (max-width: 359px) {
  .top .demo {
    display: none;
  }
  .top .nav {
    margin: 4px -5px 0;
    font-size: 0.875rem;
  }
  .top .nav a {
    padding: 0 5px;
  }
}

@media (min-width: 900px) {
  .top .wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav demo";
    column-gap: 24px;
    padding-top: 0;
    min-height: 72px;
  }
  .nav {
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
  }
  .nav .signin {
    margin-left: 16px;
  }
}

/* --- buttons --------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.button-action {
  background: var(--action);
  color: var(--on-action);
}

.button-action:hover {
  background: var(--action-hover);
}

.button-plain {
  color: var(--ink);
  border-color: var(--line);
}

.button-plain:hover {
  border-color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- screens: a computer and a phone --------------------------------------------------- */

.visual {
  margin: 0;
  min-width: 0;
}

.computer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  box-shadow: var(--shadow);
}

.computer .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  background: var(--frame-bar);
  border-bottom: 1px solid var(--hairline);
}

.computer .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

/* The top of a phone: its frame round at the top, the screen fading out where the crop ends. */
.phone {
  width: 100%;
  max-width: 320px;
  padding: 7px 7px 0;
  border-radius: 30px 30px 0 0;
  background: var(--bezel);
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}

.phone img {
  border-radius: 23px 23px 0 0;
}

/* A screen for one width only: the computer's crop is unreadable at a phone's width. */
.wide-only {
  display: none;
}

@media (min-width: 900px) {
  .wide-only {
    display: block;
  }
  .narrow-only {
    display: none;
  }
}

/* A computer and a phone together: the phone sits under the computer's right-hand corner. */
@media (min-width: 900px) {
  .pair .phone {
    width: 240px;
    margin: -56px 0 0 auto;
    position: relative;
  }
}

.phones {
  display: flex;
  gap: 32px;
}

.phones .phone {
  flex: 1;
}

.caption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* --- the first screen ------------------------------------------------------------------ */

.hero {
  padding: 40px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34rem;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.5;
}

@media (min-width: 1000px) {
  .hero {
    padding: 48px 0 88px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
  }
  .hero .text {
    padding-top: 8px;
  }
  .hero .pair .phone {
    margin-top: -170px;
  }
}

/* --- sections -------------------------------------------------------------------------- */

section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  section {
    padding: 96px 0;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cerise);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: var(--measure);
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}

h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.feature + .feature {
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}

.feature .text {
  max-width: var(--measure);
}

.feature .intro {
  margin: 12px 0 0;
  color: var(--ink);
}

.feature .then {
  margin: 20px 0 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

.points,
.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.points li,
.list li {
  position: relative;
  margin-top: 8px;
  padding-left: 20px;
}

.points li::before,
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--ink-2);
}

@media (min-width: 1000px) {
  .feature {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
    margin-top: 80px;
  }
  .feature + .feature {
    padding-top: 80px;
  }
}

/* --- how it works ---------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.steps .n {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--muted);
}

.steps h3 {
  margin-top: 16px;
  font-size: 1.375rem;
}

.steps p {
  margin: 8px 0 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* --- pricing --------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}

.plan h3 {
  font-size: 1.5rem;
}

.plan .for {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.plan .price {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
}

.plan .list {
  flex: 1;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}

.plan .actions {
  margin-top: 28px;
}

.terms {
  max-width: var(--measure);
  margin: 32px 0 0;
  color: var(--ink-2);
}

.terms p {
  margin: 8px 0 0;
}

/* --- questions ------------------------------------------------------------------------- */

.faq {
  max-width: 48rem;
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
}

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

.faq .answer {
  max-width: var(--measure);
  padding: 0 0 20px;
  color: var(--ink-2);
}

.faq .answer p {
  margin: 0 0 10px;
}

/* --- contact --------------------------------------------------------------------------- */

.contact-lines {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.contact-lines li {
  margin-top: 6px;
}

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
}

/* --- documents: privacy and terms ------------------------------------------------------ */

.document {
  max-width: 44rem;
  padding: 48px 0 88px;
}

@media (min-width: 900px) {
  .document {
    padding: 80px 0 120px;
  }
}

.document h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.document h2 {
  margin-top: 44px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  max-width: none;
}

.document p,
.document li {
  color: var(--ink-2);
}

.document .points {
  margin-top: 8px;
}

.draft {
  margin: 24px 0 8px;
  padding: 14px 16px;
  border: 1px dashed var(--ph-line);
  border-radius: 10px;
  background: var(--ph-wash);
  color: var(--ph-ink) !important;
  font-weight: 500;
}

.updated {
  margin-top: 44px;
  color: var(--muted) !important;
  font-size: 0.9375rem;
}

/* --- footer ---------------------------------------------------------------------------- */

footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
