/* Cycora — white and pink, built out of the app's own calendar.
   The day colours below are the app's, not decoration: a period day on this
   page is the same rose it is on the phone, so the page is coloured by the
   thing it describes rather than by a palette picked for a website. */
:root {
  --ground: #FFFFFF;
  --tint: #FFF7F8;
  --surface: #FFFBFB;
  --ink: #2A2023;
  --ink-2: #6F5F60;
  --ink-3: #A08E8F;
  --line: #F2E2E3;
  --line-2: #E6CDCF;

  --rose: #DCA6A5;
  --rose-ink: #A5505E;
  --rose-deep: #8E3F4D;
  --rose-wash: #FBEBEC;

  /* The three day states, from AppColors, darkened just enough to hold
     contrast as text on their own washes. */
  --period: #C4514F;
  --period-wash: #F9E0DE;
  --fertile: #6E5691;
  --fertile-wash: #EDE7F4;
  --safe: #5B7145;
  --safe-wash: #E9EEE1;

  --plum: #2B1B20;
  --measure: 66ch;
  --radius: 14px;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191315;
    --tint: #201819;
    --surface: #241C1E;
    --ink: #F5ECEC;
    --ink-2: #B7A4A5;
    --ink-3: #8B7879;
    --line: #362A2D;
    --line-2: #4B3A3D;

    --rose: #E0A0A8;
    --rose-ink: #EFAEB6;
    --rose-deep: #F2C0C6;
    --rose-wash: #3A272B;

    --period: #E58C88;
    --period-wash: #3B2523;
    --fertile: #B49BD8;
    --fertile-wash: #2B2337;
    --safe: #A3BF85;
    --safe-wash: #232C1E;

    --plum: #120C0E;
  }
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 9px; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--rose-ink); }

/* ---- type ---- */

h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 37px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}

p, li { max-width: var(--measure); }
p { margin: 0 0 14px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin: 0 0 8px; }
li::marker { color: var(--rose); }

a { color: var(--rose-ink); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-ink);
  margin: 0 0 12px;
}

.lede {
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 26px;
}

.section-lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
}

.updated { font-size: 14px; color: var(--ink-2); margin: 0 0 32px; }

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

section { padding: 72px 0; }

/* privacy.html is main > .wrap with no section of its own. */
main > .wrap { padding-top: 56px; padding-bottom: 64px; }

.band-tint { background: var(--tint); border-block: 1px solid var(--line); }

.centred { text-align: center; }
.centred p { margin-left: auto; margin-right: auto; }

/* ---- hero ---- */

.hero {
  background:
    radial-gradient(90% 120% at 10% 0%, var(--rose-wash) 0%, transparent 60%),
    var(--ground);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  gap: 44px;
  padding-top: 60px;
  padding-bottom: 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 60px;
    padding-top: 84px;
    padding-bottom: 88px;
  }
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.pills li {
  background: var(--rose-wash);
  color: var(--rose-deep);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  max-width: none;
}

/* ---- the calendar: this page's repeated object ---- */

.hero-cal { margin: 0; }

.cal-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}

.cal {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 44px -30px rgba(90, 40, 52, 0.5);
}

.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }

.cal-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-bottom: 6px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--safe-wash);
  color: var(--safe);
}

.cal-day.is-period { background: var(--period-wash); color: var(--period); }
.cal-day.is-fertile { background: var(--fertile-wash); color: var(--fertile); }
.cal-day.is-safe { background: var(--safe-wash); color: var(--safe); }

.cal-day.is-predicted {
  background: transparent;
  color: var(--period);
  border: 1.5px dashed var(--period);
}

.cal-day.is-outside { background: transparent; color: var(--ink-3); opacity: 0.45; }

.cal-day.is-today { outline: 2px solid var(--rose-deep); outline-offset: -2px; }

.cal-day .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.cal-day .tri {
  width: 0;
  height: 0;
  display: block;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid currentColor;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  justify-content: center;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  max-width: none;
}

.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw.is-period { background: var(--period-wash); border: 1px solid var(--period); }
.sw.is-fertile { background: var(--fertile-wash); border: 1px solid var(--fertile); }
.sw.is-safe { background: var(--safe-wash); border: 1px solid var(--safe); }
.sw.is-predicted { background: transparent; border: 1.5px dashed var(--period); }

/* ---- the three day states ---- */

.states { display: grid; gap: 26px; margin-top: 34px; }

@media (min-width: 760px) { .states { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.state p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: none; }

.state-cell {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.state-cell.is-period { background: var(--period-wash); color: var(--period); }
.state-cell.is-fertile { background: var(--fertile-wash); color: var(--fertile); }
.state-cell.is-safe { background: var(--safe-wash); color: var(--safe); }

.state-cell .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.state-cell .tri {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}

/* ---- the honest band ---- */

.band-split { display: grid; gap: 44px; align-items: center; }

@media (min-width: 900px) {
  .band-split { grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; }
}

.quote {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--rose);
  padding-left: 18px;
  margin: 22px 0 0;
}

/* ---- screenshots ---- */

.shots { display: grid; gap: 30px; margin: 34px 0 0; list-style: none; padding: 0; }

@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.shots li { margin: 0; max-width: none; }

.shots img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  display: block;
  margin-bottom: 16px;
  box-shadow: 0 24px 48px -34px rgba(90, 40, 52, 0.55);
}

.shots p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: none; }

/* ---- the dark band ---- */

.band-dark { background: var(--plum); color: #F6EDEE; }

.band-dark h2 { color: #FFFFFF; }
.band-dark .eyebrow { color: #E9AEB5; }
.band-dark p, .band-dark .section-lede { color: #D9C7C9; }
.band-dark a { color: #F1B9C0; }

.facts { display: grid; gap: 20px; margin: 30px 0 26px; }

@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.facts div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
.facts strong { display: block; font-size: 15.5px; color: #FFFFFF; margin-bottom: 4px; }
.facts span { font-size: 14.5px; line-height: 1.5; color: #C9B6B9; }

.tradeoff {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #E9AEB5;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 15.5px;
  max-width: var(--measure);
}

.tradeoff strong { color: #FFFFFF; }

.ghost-link { font-weight: 600; text-decoration: none; }
.ghost-link:hover { text-decoration: underline; }

/* ---- price and plans ---- */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.price strong {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--rose-ink);
  line-height: 1;
}

.price span { font-size: 15px; color: var(--ink-3); }

.split { display: grid; gap: 20px; margin-top: 26px; }

@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 22px; } }

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

.card.paid { background: var(--rose-wash); border-color: var(--rose); }

.card h3 { margin: 0 0 4px; font-size: 17.5px; }
.card .card-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; max-width: none; }
.card ul { margin: 0; }
.card li { font-size: 15px; max-width: none; }

/* ---- callout, shared with privacy.html ---- */

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose-ink);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  max-width: var(--measure);
}

.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--rose-ink); }

/* ---- button ---- */

.button {
  display: inline-block;
  background: var(--rose-ink);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 12px 26px;
  border-radius: 999px;
}

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

/* ---- store badges ---- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.centred .stores { justify-content: center; margin-top: 8px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #A6A6A6;
  border-radius: 10px;
  padding: 8px 18px 8px 14px;
  min-height: 52px;
  text-decoration: none;
  line-height: 1.1;
}

.store:hover { background: #1F1A1B; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.store strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- support page ---- */

.contact {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 32px;
  max-width: var(--measure);
}

.contact .email {
  font-family: var(--display);
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-block;
  margin: 4px 0 12px;
}

.contact p:last-child { margin-bottom: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
  max-width: var(--measure);
}

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

.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

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

.faq summary::after {
  content: "+";
  color: var(--rose-ink);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

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

.faq details p:last-of-type { margin-bottom: 18px; }
.faq details ul:last-child { margin-bottom: 18px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
