/* Cubbyly — landing styles. Brand: "Fresh Order" (declutter & organize).
   Light, airy, sans-only. Prefix cb-. */

:root {
  /* surfaces */
  --paper: #f7f6f2;         /* warm off-white page */
  --surface: #ffffff;       /* cards */
  --surface-2: #fbfbf8;     /* nested */
  --tint: #eef4f1;          /* soft teal-tinted panel */
  --tint-2: #fff1ec;        /* soft coral-tinted panel */

  /* ink */
  --ink: #17211f;           /* headings/body */
  --muted: #566661;         /* supporting */
  --faint: #8a938f;         /* captions */

  /* brand */
  --teal: #14a08a;          /* bright brand — graphics/icons */
  --teal-600: #0e8574;      /* hover */
  --teal-700: #0b6b5c;      /* text/buttons on white (AA contrast) */
  --teal-50: #e7f6f1;
  --teal-100: #cdece4;
  --coral: #ff7a59;         /* accent pop */
  --coral-700: #c8492c;     /* coral text on white (AA) */
  --coral-50: #ffece6;

  /* lines */
  --line: #e4e8e4;
  --line-soft: #eef1ee;

  --ring: 0 1px 2px rgba(23,33,31,.04), 0 10px 34px rgba(23,33,31,.07);
  --ring-sm: 0 1px 2px rgba(23,33,31,.05), 0 4px 14px rgba(23,33,31,.05);
  --radius: 18px;
  --radius-sm: 12px;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.cb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.cb-narrow { max-width: 760px; }
.cb-sec { padding: 92px 0; }
.cb-sec--tight { padding: 56px 0; }
.cb-center { text-align: center; margin: 0 auto; }
.cb-center .cb-lede { margin-left: auto; margin-right: auto; }
.cb-mt { margin-top: 44px; }

.cb-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700);
}
.cb-lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* buttons */
.cb-btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.cb-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cb-btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--ring-sm); }
.cb-btn--primary:hover { background: var(--teal-600); }
.cb-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cb-btn--ghost:hover { background: var(--surface); border-color: var(--faint); }
.cb-btn--lg { padding: 15px 26px; font-size: 1.06rem; }

/* nav */
.cb-top { position: sticky; top: 0; z-index: 40; background: rgba(247,246,242,.82); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line-soft); }
.cb-nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.cb-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); }
.cb-brand:hover { text-decoration: none; }
.cb-navlinks { display: flex; align-items: center; gap: 26px; }
.cb-navlinks a { color: var(--muted); font-size: .96rem; font-weight: 500; }
.cb-navlinks a:hover { color: var(--ink); text-decoration: none; }
.cb-navlinks .cb-navcta { color: var(--teal-700); font-weight: 600; }
@media (max-width: 720px) { .cb-navlinks .cb-hide-sm { display: none; } }

/* hero */
.cb-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.cb-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cb-hero h1 { margin-top: 16px; }
.cb-hero .cb-em { color: var(--teal); }
.cb-hero .cb-lede { font-size: 1.2rem; }
.cb-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cb-subnote { color: var(--faint); font-size: .92rem; margin-top: 14px; }
.cb-hero-blob { position: absolute; inset: auto -180px -220px auto; width: 520px; height: 520px; background: radial-gradient(circle at 30% 30%, var(--teal-50), transparent 62%); z-index: -1; }
@media (max-width: 860px) {
  .cb-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* copy first on mobile (headline + CTA above the fold), phone mock below */
  .cb-phone { width: 270px; }
}

/* phone mock */
.cb-phone { width: 300px; max-width: 82%; margin: 0 auto; background: #10201c; border-radius: 40px; padding: 10px; box-shadow: var(--ring); }
.cb-phone-screen { background: var(--paper); border-radius: 31px; overflow: hidden; }
.cb-scr { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.cb-scr-bar { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--faint); font-weight: 600; }
.cb-scr-bar .dots { letter-spacing: 2px; }
.cb-scr-head { display: flex; align-items: baseline; justify-content: space-between; }
.cb-scr-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.cb-scr-goal { font-size: .72rem; color: var(--teal-700); background: var(--teal-50); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.cb-scr-photo { height: 92px; border-radius: 12px; background: linear-gradient(135deg, #e9e3d7, #d8ccbb); display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 10px; }
.cb-scr-photo .tag { font-size: .66rem; font-weight: 700; color: #fff; background: var(--coral); padding: 2px 8px; border-radius: 999px; }
.cb-scr-photo .ph { font-size: .66rem; color: #6b6152; font-weight: 600; }
.cb-scr-lab { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; margin-top: 2px; }
.cb-scr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.cb-check { display: flex; align-items: center; gap: 9px; font-size: .82rem; padding: 4px 0; }
.cb-check + .cb-check { border-top: 1px solid var(--line-soft); }
.cb-box { width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--line); flex: none; }
.cb-check.done .cb-box { background: var(--teal); border-color: var(--teal); position: relative; }
.cb-check.done .cb-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb-check.done span { color: var(--faint); text-decoration: line-through; }
.cb-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 5px 0; }
.cb-item + .cb-item { border-top: 1px solid var(--line-soft); }
.cb-item .ci { width: 26px; height: 26px; border-radius: 8px; background: var(--teal-50); display: flex; align-items: center; justify-content: center; flex: none; }
.cb-item b { font-weight: 600; }
.cb-item .search { margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--teal-700); background: var(--teal-50); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.cb-scr-fine { font-size: .62rem; color: var(--faint); text-align: center; }

/* hero mascot */
.cb-hero-art { position: relative; }
.cb-hero-mascot { position: absolute; left: -4px; bottom: -20px; width: 138px; height: auto; z-index: 3; filter: drop-shadow(0 12px 22px rgba(23,33,31,.16)); }
@media (max-width: 860px) { .cb-hero-mascot { width: 104px; left: 6px; bottom: -8px; } }

/* screenshots gallery */
.cb-shots-wrap { margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 8px 24px 16px; }
.cb-shots { display: flex; gap: 24px; width: max-content; margin: 0 auto; }
.cb-shot { flex: none; width: 236px; margin: 0; text-align: center; scroll-snap-align: center; }
.cb-shot-dev { background: #10201c; border-radius: 36px; padding: 8px; box-shadow: var(--ring); transition: transform .16s ease; }
.cb-shot:hover .cb-shot-dev { transform: translateY(-4px); }
.cb-shot-dev img { display: block; width: 100%; height: auto; border-radius: 29px; }
.cb-shot figcaption { margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted); }
.cb-shots-wrap::-webkit-scrollbar { height: 8px; }
.cb-shots-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* benefit strip */
.cb-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.cb-strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 20px 0; }
.cb-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; font-size: .96rem; }
.cb-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

/* steps */
.cb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cb-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--ring-sm); position: relative; }
.cb-step .cb-num { font-family: var(--font-head); font-weight: 700; font-size: .95rem; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-700); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cb-step h3 { margin-bottom: 7px; }
.cb-step p { color: var(--muted); font-size: .98rem; }
.cb-step .cb-arrow { position: absolute; right: -16px; top: 42px; color: var(--line); font-size: 1.4rem; z-index: 2; }
@media (max-width: 780px) { .cb-steps { grid-template-columns: 1fr; } .cb-step .cb-arrow { display: none; } }

/* features */
.cb-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--ring-sm); }
.cb-card .cb-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--teal-50); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cb-card .cb-ic svg { width: 24px; height: 24px; }
.cb-card h3 { margin-bottom: 8px; }
.cb-card p { color: var(--muted); font-size: 1rem; }
.cb-card--coral .cb-ic { background: var(--coral-50); }
@media (max-width: 720px) { .cb-feat { grid-template-columns: 1fr; } }

/* spaces grid */
.cb-spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cb-space { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 14px; text-align: center; font-weight: 600; font-size: .98rem; transition: transform .12s ease, border-color .2s ease; }
.cb-space:hover { transform: translateY(-3px); border-color: var(--teal-100); }
.cb-space .em { display: block; font-size: 1.7rem; margin-bottom: 8px; }
@media (max-width: 780px) { .cb-spaces { grid-template-columns: repeat(2, 1fr); } }

/* sample project */
.cb-project { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--ring); overflow: hidden; display: grid; grid-template-columns: 300px 1fr; }
.cb-project-photo { background: linear-gradient(150deg, #e9e3d7, #cfc2ae); position: relative; min-height: 260px; display: flex; align-items: flex-end; padding: 18px; }
.cb-project-photo .cb-beforetag { font-family: var(--font-head); font-weight: 700; font-size: .74rem; color: #fff; background: rgba(23,33,31,.55); padding: 5px 12px; border-radius: 999px; }
.cb-project-photo .cb-clutter { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 8px; padding: 22px; opacity: .5; }
.cb-project-photo .cb-clutter i { border-radius: 6px; background: rgba(255,255,255,.35); }
.cb-project-body { padding: 26px 28px; }
.cb-project-body .cb-metarow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cb-pill { font-size: .74rem; font-weight: 700; font-family: var(--font-head); padding: 4px 11px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); }
.cb-pill--goal { background: var(--coral-50); color: var(--coral-700); }
.cb-project-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.cb-mini-h { font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 10px; }
.cb-plan-list { list-style: none; margin: 0; padding: 0; }
.cb-plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; padding: 6px 0; }
.cb-plan-list li .cb-box { margin-top: 3px; }
.cb-plan-list li.done span { color: var(--faint); text-decoration: line-through; }
.cb-org-list { list-style: none; margin: 0; padding: 0; }
.cb-org { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.cb-org + .cb-org { border-top: 1px solid var(--line-soft); }
.cb-org .cb-ic-sm { width: 30px; height: 30px; border-radius: 9px; background: var(--teal-50); display: flex; align-items: center; justify-content: center; flex: none; }
.cb-org b { font-weight: 600; font-size: .95rem; }
.cb-org small { color: var(--faint); display: block; font-size: .78rem; }
.cb-org .cb-searchlink { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--teal-700); background: var(--teal-50); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.cb-org .cb-searchlink:hover { background: var(--teal-100); text-decoration: none; }
@media (max-width: 860px) { .cb-project { grid-template-columns: 1fr; } .cb-project-photo { min-height: 180px; } }
@media (max-width: 560px) { .cb-project-cols { grid-template-columns: 1fr; } }

/* my projects list */
.cb-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cb-proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--ring-sm); }
.cb-proj .cb-thumb { height: 118px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cb-proj .cb-thumb.t1 { background: linear-gradient(150deg,#e4efe9,#cfe6dc); }
.cb-proj .cb-thumb.t2 { background: linear-gradient(150deg,#f4e7df,#e7cdbb); }
.cb-proj .cb-thumb.t3 { background: linear-gradient(150deg,#e7e9f4,#d3d7ec); }
.cb-proj-meta { padding: 14px 16px; }
.cb-proj-meta b { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.cb-proj-meta .cb-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cb-status { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.cb-status.go { background: var(--teal-50); color: var(--teal-700); }
.cb-status.done { background: #eef1ee; color: var(--muted); }
.cb-proj-meta .cb-date { color: var(--faint); font-size: .8rem; }
@media (max-width: 780px) { .cb-projects { grid-template-columns: 1fr; } }

/* honest / privacy */
.cb-honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cb-honest .cb-card p { font-size: .98rem; }
@media (max-width: 780px) { .cb-honest { grid-template-columns: 1fr; } }

/* disclosure */
.cb-disclosure { margin-top: 34px; background: var(--tint); border: 1px solid var(--teal-100); border-radius: var(--radius-sm); padding: 18px 22px; }
.cb-disclosure p { color: var(--muted); font-size: .92rem; }
.cb-disclosure strong { color: var(--ink); }
.cb-ainote { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .82rem; color: var(--faint); }
.cb-ainote .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* faq */
.cb-faq { max-width: 760px; margin: 0 auto; }
.cb-q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.cb-q summary { font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cb-q summary::-webkit-details-marker { display: none; }
.cb-q summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400; flex: none; }
.cb-q[open] summary::after { content: "\2013"; }
.cb-q p { color: var(--muted); padding: 0 0 18px; font-size: .98rem; }

/* cta band */
.cb-ctaband { background: var(--ink); border-radius: 26px; padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cb-ctaband::before { content: ""; position: absolute; inset: -40% 60% 40% -10%; background: radial-gradient(circle, rgba(20,160,138,.5), transparent 60%); }
.cb-ctaband::after { content: ""; position: absolute; inset: 30% -12% -50% 55%; background: radial-gradient(circle, rgba(255,122,89,.42), transparent 60%); }
.cb-ctaband > * { position: relative; }
.cb-ctaband h2 { color: #fff; }
.cb-ctaband p { color: rgba(255,255,255,.78); margin: 12px auto 26px; max-width: 46ch; }
.cb-ctaband .cb-btn--primary { background: #fff; color: var(--ink); }
.cb-ctaband .cb-btn--primary:hover { background: var(--teal-50); }

/* footer */
.cb-foot { border-top: 1px solid var(--line); background: var(--surface-2); }
.cb-foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; padding: 40px 0 20px; }
.cb-foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; color: var(--ink); }
.cb-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.cb-foot nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.cb-foot-note { grid-column: 1 / -1; color: var(--faint); font-size: .84rem; border-top: 1px solid var(--line-soft); padding-top: 18px; margin-bottom: 8px; }
.cb-foot-note a { color: var(--muted); }

/* doc pages (privacy/terms) */
.cb-doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 48px; }
.cb-doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.cb-doc h2 { font-size: 1.28rem; margin: 34px 0 8px; }
.cb-doc p { color: var(--muted); margin: 10px 0; }
.cb-doc .cb-meta { color: var(--faint); font-size: .9rem; margin-top: 6px; }
.cb-doc strong { color: var(--ink); }
