/* Octoclerk. Cartoon, but built for people who bill by the hour. */
:root {
  --ink: #17304f;
  --ink-soft: #3d5473;
  --foam: #eaf6f5;
  --paper: #ffffff;
  --purple: #8b6be8;
  --purple-deep: #6a4cc9;
  --lavender: #eee8ff;
  --coral: #ff7a66;
  --sun: #ffc94a;
  --sun-pale: #fff6da;
  --mint: #5ed3b8;
  --sky: #7cc6ff;
  --sky-pale: #d9ecff;
  --radius: 22px;
  --edge: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: var(--edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.7rem; }
.brand img { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--purple-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; padding: 13px 26px; border: var(--edge); border-radius: 999px; background: var(--coral); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--paper); }
.btn.sm { padding: 9px 20px; font-size: 1rem; }

/* hero */
.hero { background: var(--foam); padding: 56px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
.hero .lede { margin-top: 22px; font-size: 1.3rem; max-width: 34ch; color: var(--ink-soft); }
.hero .row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero .fine { margin-top: 22px; font-size: 1rem; color: var(--ink-soft); max-width: 40ch; }
.hero-art { animation: hello 1.1s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: 50% 90%; }
@keyframes hello { from { transform: translateY(40px) rotate(-3deg) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.wave { display: block; width: 100%; height: 90px; margin-top: -3px; background-size: 100% 100%; }
.wave.foam-white { background-image: url(assets/wave-foam-to-white.svg); }
.wave.foam-navy { background-image: url(assets/wave-foam-to-navy.svg); }

/* sections */
section { padding: 84px 0; }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.2rem; }
.head.center { margin-inline: auto; text-align: center; }

/* what it does */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.tile { background: var(--paper); border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop); overflow: hidden; display: flex; flex-direction: column; }
.tile:nth-child(odd) { transform: rotate(-.6deg); }
.tile:nth-child(even) { transform: rotate(.6deg); }
.tile img { width: 100%; border-bottom: var(--edge); background: var(--foam); }
.tile .txt { padding: 20px 22px 26px; }
.tile h3 { font-size: 1.5rem; }
.tile p { margin-top: 8px; color: var(--ink-soft); font-size: 1.05rem; }

/* sample day */
.day { background: var(--sun-pale); }
.day ol { list-style: none; margin: 0; padding: 0; max-width: 760px; position: relative; }
.day ol::before { content: ""; position: absolute; left: 53px; top: 14px; bottom: 14px; width: 4px; background: var(--ink); border-radius: 4px; }
.day li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 14px 0; align-items: start; position: relative; }
.day .time { font-family: var(--display); font-weight: 600; font-size: 1.15rem; background: var(--paper); border: var(--edge); border-radius: 999px; text-align: center; padding: 4px 0; position: relative; z-index: 1; box-shadow: 3px 3px 0 var(--ink); }
.day li:nth-child(1) .time { background: var(--sky-pale); }
.day li:nth-child(2) .time { background: #ffe0da; }
.day li:nth-child(3) .time { background: #d4f4ea; }
.day li:nth-child(4) .time { background: var(--lavender); }
.day li:nth-child(5) .time { background: var(--sun); }
.day li b { font-family: var(--display); font-weight: 600; font-size: 1.25rem; display: block; }
.day-note { margin-top: 18px; font-size: .98rem; color: var(--ink-soft); }
.day .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.day .side { justify-self: center; width: min(360px, 100%); }
.day .side img { width: 100%; filter: drop-shadow(0 10px 0 rgba(23,48,79,.12)); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.step { text-align: center; position: relative; }
.step img { width: min(300px, 100%); margin: 0 auto; }
.step .n { counter-increment: s; width: 46px; height: 46px; margin: -12px auto 10px; border-radius: 50%; background: var(--purple); color: #fff; border: var(--edge); font-family: var(--display); font-weight: 600; font-size: 1.4rem; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); position: relative; }
.step .n::before { content: counter(s); }
.step h3 { font-size: 1.6rem; }
.step p { margin: 8px auto 0; max-width: 30ch; color: var(--ink-soft); }

/* proof */
.proof { background: var(--lavender); }
.proof .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.proof .frame { border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop); background: #ffe0ec; overflow: hidden; transform: rotate(-1deg); }
.proof h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.proof p { margin-top: 16px; color: var(--ink-soft); }
.proof ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.proof li { padding-left: 38px; position: relative; font-weight: 700; }
.proof li::before, .safe li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317304f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; border: 2.5px solid var(--ink); }
.sig { margin-top: 26px; font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.sig span { display: block; font-family: var(--body); font-size: 1rem; color: var(--ink-soft); }

/* pricing */
.price { background: var(--foam); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.plan { background: var(--paper); border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop); padding: 30px 30px 34px; display: flex; flex-direction: column; }
.plan.feat { background: var(--sun-pale); }
.plan .tag { align-self: flex-start; background: var(--coral); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
.plan h3 { font-size: 1.7rem; }
.plan .big { font-family: var(--display); font-weight: 600; font-size: 3.2rem; line-height: 1; margin: 14px 0 4px; }
.plan .big small { font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); border: 2.5px solid var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan ul + .btn { margin-top: 28px; }
.guarantee { margin-top: 40px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: var(--paper); border: var(--edge); border-radius: var(--radius); box-shadow: var(--pop); padding: 18px 30px 18px 18px; }
.guarantee h3 { font-size: 1.6rem; }
.guarantee p { margin-top: 6px; color: var(--ink-soft); }
.costs { margin-top: 30px; max-width: 760px; color: var(--ink-soft); font-size: 1.02rem; }
.costs b { color: var(--ink); }

/* careful by design */
.safe .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.safe h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.safe ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.safe li { padding-left: 40px; position: relative; }
.safe li::before { top: 4px; }
.safe li b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.safe .art { justify-self: center; width: min(340px, 100%); }

/* faq */
.faq { background: var(--sky-pale); }
.faq .wrap { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; align-items: start; }
.faq .head { margin-bottom: 0; }
.faq .art { width: min(280px, 100%); margin-top: 18px; }
details { background: var(--paper); border: var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); margin-bottom: 16px; }
summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 22px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -52%; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "\2212"; background: var(--coral); }
details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* final call */
.final { padding: 70px 0 84px; }
.final .card { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 10px; background: var(--sky); border: var(--edge); border-radius: 30px; box-shadow: var(--pop); overflow: hidden; padding: 0 0 0 48px; }
.final .card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: url(assets/wave-strip.svg) repeat-x left bottom / auto 70px; pointer-events: none; }
.final .copy { padding: 48px 0 84px; align-self: center; position: relative; z-index: 2; }
.final h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.final p { margin-top: 12px; font-size: 1.2rem; max-width: 36ch; }
.final .row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.final .mail { font-weight: 800; color: var(--ink); }
.final img { width: 100%; align-self: end; margin-bottom: 0; padding-bottom: 14px; }

footer { background: var(--ink); color: #dbe6f3; padding: 40px 0 46px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
footer .brand { color: #fff; font-size: 1.5rem; }
footer .brand img { width: 40px; height: 40px; }
footer small { font-size: .95rem; max-width: 62ch; }

/* footer links */
.flinks { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.flinks a { color: #fff; font-weight: 700; }
.flinks a:hover { color: var(--sun); }

/* legal pages and 404 */
.legal-head { background: var(--foam); padding: 56px 0 56px; border-bottom: var(--edge); }
.legal-head .wrap { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: center; }
.legal-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal-head .lede { margin-top: 16px; font-size: 1.25rem; max-width: 40ch; color: var(--ink-soft); }
.legal-head .fine { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }
.legal-head img { width: 100%; max-width: 280px; justify-self: center; }
.legal { padding: 64px 0 90px; }
.doc { max-width: 760px; margin-inline: auto; }
.doc h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.doc p { margin-top: 12px; color: var(--ink-soft); }
.doc ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-soft); }
.doc li { padding-left: 30px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); border: 2.5px solid var(--ink); }
.doc a { font-weight: 700; }
.lost { min-height: 62vh; display: grid; align-items: center; }

/* responsive */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 820px) {
  section { padding: 60px 0; }
  .hero { padding-top: 32px; }
  .hero .wrap, .proof .wrap, .safe .wrap, .faq .wrap, .day .wrap, .legal-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .legal-head img { max-width: 200px; order: -1; justify-self: start; }
  .hero-art { order: -1; width: 100%; max-width: min(520px, 100%); margin-inline: auto; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .guarantee { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 18px; }
  .guarantee img { width: 180px; margin: 0 auto; }
  .final .card { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .final .copy { padding: 36px 26px 8px; }
  .final img { max-width: 440px; margin-inline: auto; }
  .safe .art { order: -1; }
  .faq .art { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile:nth-child(n) { transform: none; }
  .day li { grid-template-columns: 92px 1fr; gap: 14px; }
  .day ol::before { left: 44px; }
  .brand { font-size: 1.45rem; }
  .brand img { width: 40px; height: 40px; }
  .top .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .btn { transition: none; }
}
