/* Alabo's website: the app's look. Cream ground, ink text, Georgia headings,
   Helvetica Neue body, the four colours used only for dots. */

:root {
  --ground: #FBF3E4;
  --ink: #1F1B16;
  --secondary: #6B6257;
  --hairline: rgba(31, 27, 22, 0.1);
  --card: rgba(255, 255, 255, 0.55);
  --green: #4F8240;
  --yellow: #E6B53E;
  --amber: #DD7F35;
  --red: #C4472F;
  --break: #D6CDBD;
  --gold: #8A6418;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { opacity: 0.75; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* Header and footer */

header.site { padding: 22px 0 8px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
nav a { margin-left: 18px; text-decoration: none; font-size: 15px; color: var(--secondary); }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.wordmark { display: inline-block; text-decoration: none; }
.wordmark span.name { font-family: Georgia, serif; font-weight: bold; font-size: 30px; letter-spacing: -0.5px; display: block; line-height: 1.1; }
.bars { display: flex; gap: 3px; margin-top: 4px; }
.bars i { display: block; height: 4px; flex: 1; border-radius: 2px; }
.bars i:nth-child(1) { background: var(--green); }
.bars i:nth-child(2) { background: var(--yellow); }
.bars i:nth-child(3) { background: var(--amber); }
.bars i:nth-child(4) { background: var(--red); }
.wordmark.big span.name { font-size: 64px; }
.wordmark.big .bars { gap: 6px; margin-top: 8px; }
.wordmark.big .bars i { height: 8px; border-radius: 4px; }

footer.site { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--secondary); }
footer.site a { color: var(--secondary); margin-right: 16px; }

/* Type */

h1, h2, h3 { font-family: Georgia, serif; font-weight: normal; line-height: 1.2; margin: 0; }
h1 { font-size: 40px; font-weight: bold; margin: 28px 0 10px; }
h2 { font-size: 28px; margin: 48px 0 10px; }
h3 { font-size: 20px; font-style: italic; margin: 22px 0 4px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--secondary); }
.grey { color: var(--secondary); }
.small { font-size: 14px; }
.tagline { font-family: Georgia, serif; font-style: italic; font-size: 24px; color: var(--secondary); margin: 18px 0 0; }

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 14px 0;
}

/* Hero */

.hero { text-align: center; padding: 56px 0 16px; }

/* The widget, drawn as on the phone */

.widget {
  max-width: 420px;
  margin: 36px auto 0;
  background: var(--ground);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(31, 27, 22, 0.14);
  padding: 16px 18px 10px;
  text-align: left;
}
.widget .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.widget .top b { font-family: Georgia, serif; font-size: 17px; }
.widget .top span { font-size: 11px; color: var(--secondary); }
.widget .row { display: flex; align-items: center; border-top: 1px solid var(--hairline); padding: 6px 0; font-size: 13px; }
.widget .row .pillar { font-family: Georgia, serif; font-style: italic; color: var(--secondary); width: 98px; flex: none; font-size: 12px; }
.widget .row .areas { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dot.big { width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; }
.green { background: var(--green); }
.yellow { background: var(--yellow); }
.amber { background: var(--amber); }
.red { background: var(--red); }
.break { background: var(--break); }

/* Lists */

.pillars { list-style: none; padding: 0; margin: 0; }
.pillars li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.pillars li:first-child { border-top: 0; }
.pillars b { font-family: Georgia, serif; font-style: italic; font-weight: normal; font-size: 20px; display: block; }
.pillars span { color: var(--secondary); font-size: 15px; }

.colours { list-style: none; padding: 0; margin: 0; }
.colours li { padding: 6px 0; }
.colours b { display: inline-block; width: 110px; font-weight: 500; }

/* The week's rhythm */

.week { display: flex; justify-content: space-between; max-width: 420px; margin: 20px auto 8px; }
.week div { text-align: center; font-size: 12px; color: var(--secondary); width: 40px; }
.week .day { display: block; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; border: 1.5px solid rgba(31, 27, 22, 0.2); }
.week .checkin { border: 3px solid; border-color: var(--green) var(--yellow) var(--amber) var(--red); }
.week .mark { display: block; height: 16px; font-size: 13px; color: var(--ink); }
.week .pulse .mark { color: var(--gold); }

/* Steps on How it works */

.step { display: flex; gap: 16px; margin: 28px 0; }
.step .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--ground); font-family: Georgia, serif; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.step h3 { margin-top: 2px; }
.premium { font-size: 11px; letter-spacing: 1.5px; color: var(--gold); font-weight: 500; vertical-align: 2px; margin-left: 6px; }

/* Waiting list */

form.waitlist { margin-top: 12px; }
form.waitlist input[type="email"] {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(31, 27, 22, 0.18); background: #fff; color: var(--ink);
}
form.waitlist label.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; }
form.waitlist label.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.button {
  display: inline-block; width: 100%; text-align: center; font: inherit; font-weight: 500;
  background: var(--ink); color: var(--ground); border: 0; border-radius: 26px; padding: 14px 20px;
  cursor: pointer; text-decoration: none;
}
.button[disabled] { opacity: 0.35; cursor: not-allowed; }

/* FAQ */

details { border-top: 1px solid var(--hairline); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; font-weight: 500; }
details p { margin: 10px 0 0; color: var(--secondary); }

.services h3 { font-size: 18px; margin-top: 26px; }
.services ul { list-style: none; padding: 0; margin: 6px 0 0; }
.services li { padding: 6px 0; }
.services li span { display: block; color: var(--secondary); font-size: 14px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .wordmark.big span.name { font-size: 52px; }
  nav a { margin-left: 12px; font-size: 14px; }
  .widget .row .pillar { width: 84px; }
}

/* ---- Build: story pages, animations, Premium examples ---- */

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.buttons .button { width: auto; min-width: 200px; }
.button.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

.chapter { margin: 64px 0; }
.chapter .kicker { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--secondary); margin-bottom: 6px; }
.chapter h2 { margin-top: 0; }
.stage { margin: 24px auto 8px; max-width: 460px; }

/* 1. The ring of five pillars */
.ring svg { display: block; margin: 0 auto; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.ring .arc { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.7s ease-out; }
.ring .label { font-family: Georgia, serif; font-style: italic; font-size: 15px; fill: var(--ink); opacity: 0; transition: opacity 0.5s; }
.ring .whole { font-family: Georgia, serif; font-style: italic; font-size: 14px; fill: var(--secondary); opacity: 0; transition: opacity 0.8s 3.6s; }
.play .ring .arc, .play.ring .arc { stroke-dashoffset: 0; }
.play .ring .label, .play.ring .label { opacity: 1; }
.play .ring .whole, .play.ring .whole { opacity: 1; }

/* Things that appear one after another */
.pop { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.play .pop { opacity: 1; transform: none; }
.fill { background: transparent !important; box-shadow: inset 0 0 0 1.5px rgba(31, 27, 22, 0.2); transition: background 0.3s, box-shadow 0.3s; }
.play .fill.green { background: var(--green) !important; box-shadow: none; }
.play .fill.yellow { background: var(--yellow) !important; box-shadow: none; }
.play .fill.amber { background: var(--amber) !important; box-shadow: none; }
.play .fill.red { background: var(--red) !important; box-shadow: none; }

/* 3. A home screen with the widget */
.phone { max-width: 300px; margin: 0 auto; background: linear-gradient(160deg, #d9cbb4, #b8a78f); border-radius: 36px; padding: 22px 16px 26px; box-shadow: 0 10px 30px rgba(31, 27, 22, 0.18); }
.phone .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.phone .apps i { display: block; aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.5); }
.phone .widget { margin: 0; max-width: none; padding: 12px 12px 6px; border-radius: 20px; }
.phone .widget .row { font-size: 11px; padding: 4px 0; }
.phone .widget .row .pillar { width: 74px; font-size: 10px; }

/* 4–6. The week */
.week .day { position: relative; transition: background 0.4s, transform 0.4s; }
.week .on .day { background: rgba(31, 27, 22, 0.1); transform: scale(1.12); }
.week .checkin { border-color: rgba(31, 27, 22, 0.2); }
.week .checkin.spin { border-color: var(--green) var(--yellow) var(--amber) var(--red); animation: spin 1.6s ease-in-out; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.week .mark { opacity: 0; transition: opacity 0.4s; }
.week .shown .mark { opacity: 1; }
.week .pulse .day::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #C9962E; opacity: 0; }
.week .pulse.on .day::after { animation: ripple 1.1s ease-out infinite; }
@keyframes ripple { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.checkin-card { max-width: 420px; margin: 18px auto 0; }
.checkin-card .level { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 15px; transition: background 0.3s, box-shadow 0.3s; }
.checkin-card.play .level.picked { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.step-rows .stepline { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.step-rows .stepline:first-child { border-top: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(31, 27, 22, 0.35); flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ground); transition: background 0.3s, border-color 0.3s; }
.play .tick.done { background: var(--ink); border-color: var(--ink); }
.step-rows .meta { color: var(--secondary); font-size: 13px; display: block; }

/* Premium */
.gold-card { border-color: rgba(201, 150, 46, 0.45); background: linear-gradient(180deg, rgba(230, 181, 62, 0.12), rgba(255, 255, 255, 0.55) 60%); }
.example { background: var(--ground); border-radius: 14px; padding: 14px 16px; margin-top: 12px; box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; }
.example .line { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.example .line + .line { border-top: 1px solid var(--hairline); }
.tag { font-size: 11px; color: var(--secondary); border: 1px solid rgba(31, 27, 22, 0.2); border-radius: 10px; padding: 1px 7px; white-space: nowrap; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; }
.pillar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pillar-row .name { width: 104px; font-family: Georgia, serif; font-style: italic; font-size: 13px; flex: none; }
.pillar-row .pc { width: 40px; text-align: right; font-size: 12px; color: var(--secondary); flex: none; }
.year { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.year i { display: block; aspect-ratio: 1; border-radius: 50%; }
.soon { font-size: 12px; color: var(--secondary); border: 1px solid rgba(31, 27, 22, 0.2); border-radius: 10px; padding: 1px 8px; margin-left: 8px; vertical-align: 3px; font-family: "Helvetica Neue", Helvetica, sans-serif; font-style: normal; }
.arrow { color: var(--secondary); }

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

/* Build 2 of the site: fuller dashboard, the weekly rhythm, Premium examples */

.rhythm { margin-top: 10px; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.parts .card { margin: 0; transition: box-shadow 0.35s, background 0.35s; }
.parts .card.active { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.parts h3 { margin-top: 0; font-size: 18px; }
.parts p { font-size: 15px; }
.parts .when { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--secondary); margin-bottom: 4px; display: block; }
.mini { margin-top: 10px; font-size: 13px; }
.mini .lv { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 8px; }
.mini .lv.picked { background: #fff; box-shadow: inset 0 0 0 1.2px var(--ink); }
.mini .tickrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.mini .tickrow .tick { width: 18px; height: 18px; font-size: 10px; }
.mini .tickrow .tick.done { background: var(--ink); border-color: var(--ink); }
@media (max-width: 700px) { .parts { grid-template-columns: 1fr; } }

.pillar-list { margin-top: 10px; }
.pillar-list li { opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s; }
.play .pillar-list li, .pillar-list.play li { opacity: 1; transform: none; }

/* Pattern icons, as in the app: a symbol in the pattern's colour */
.picon { width: 18px; height: 18px; flex: none; position: relative; top: 3px; }
.picon path, .picon polyline, .picon line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-green { stroke: var(--green); } .c-yellow { stroke: #C99A22; } .c-amber { stroke: var(--amber); } .c-red { stroke: var(--red); }
.example .line.lead { font-size: 15px; font-weight: 500; }

/* Year in dots, with area names */
.yeargrid { display: grid; grid-template-columns: 64px repeat(52, 1fr); gap: 2px 1.5px; align-items: center; font-size: 11px; }
.yeargrid .nm { color: var(--ink); white-space: nowrap; overflow: hidden; }
.yeargrid .grp { grid-column: 1 / -1; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--secondary); margin-top: 6px; }
.yeargrid .mo { font-size: 9px; color: var(--secondary); overflow: visible; white-space: nowrap; }
.yeargrid i { display: block; aspect-ratio: 1; border-radius: 50%; }
.yeargrid i.empty { box-shadow: inset 0 0 0 0.75px rgba(31, 27, 22, 0.18); }

/* Widget types */
.wtypes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.wtype { flex: 1 1 260px; max-width: 320px; }
.wtype .label { font-size: 12px; color: var(--secondary); text-align: center; margin-top: 8px; }
.wtype .widget { margin: 0; max-width: none; padding: 12px 12px 8px; box-shadow: 0 6px 18px rgba(31, 27, 22, 0.12); }
.wtype .widget .row { font-size: 11px; padding: 4px 0; }
.wtype .widget .row .pillar { width: 64px; font-size: 9.5px; }
.wtype .widget .areas { gap: 3px 7px; } .wtype .widget .row { font-size: 10.5px; }
.six { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 10px; }
.six span { display: flex; gap: 2px; }
.six span i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.six span i:last-child { width: 7px; height: 7px; }
.large-steps { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 8px; }
.large-steps b { font-family: Georgia, serif; font-size: 13px; display: block; margin-bottom: 4px; }
.large-steps .tickrow { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 3px 0; }
.large-steps .tickrow em { font-family: Georgia, serif; color: var(--secondary); font-size: 10px; }
.large-steps .tick { width: 15px; height: 15px; font-size: 9px; }
.tick.live { cursor: pointer; }
.play .tick.done, .tick.done.on { background: var(--ink); border-color: var(--ink); }

/* Waiting list states */
.thanks { display: none; }
.sent .thanks { display: block; }
.sent form { display: none; }
