/* culla.io: Culla Cloud's site. Colours and type follow getculla.com (Culla's brand), and the
   container, header and buttons match its sizes exactly, so moving between the sites doesn't
   shift the header. Keep them in step with getculla.com/styles/site.css. */

:root {
  --ground: #f4f1ea;
  --ink: #17161a;
  --accent: #d2562a;
  --accent-strong: #b8461e;
  --accent-text: #b8461e;
  --accent-hover: #a33d19;
  --muted: rgba(23, 22, 26, 0.64);
  --hairline: rgba(23, 22, 26, 0.1);
  --card: rgba(255, 255, 255, 0.6);
  --card-border: rgba(23, 22, 26, 0.07);
  --glow: rgba(210, 86, 42, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17161a;
    --ink: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.66);
    --hairline: rgba(244, 241, 234, 0.1);
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(244, 241, 234, 0.08);
    --glow: rgba(210, 86, 42, 0.2);
    --accent-text: #e0683c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
code { font: 0.9em var(--mono); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.lockup .mark { width: 30px; height: 30px; }
.lockup .wordmark { height: 20px; width: auto; }
/* "cloud" is set like the wordmark (Fraunces, made with Brand/wordmark/outline.py at the small
   wordmark's settings), one word space after it and quieter. */
.lockup .wordmark + .wordmark { height: 20px; width: auto; margin-left: -3px; color: var(--muted); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-quiet { border-color: var(--hairline); color: var(--ink); background: var(--card); }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(48px, 8vw, 96px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Gallery illustration */
.mock { margin: 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); box-shadow: 0 30px 80px -30px var(--glow), 0 12px 40px -24px rgba(0, 0, 0, 0.25); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.mock-bar p { margin-left: 10px; font: 13px var(--mono); color: var(--muted); }
.mock-head { padding: 22px 22px 14px; }
.mock-title { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.mock-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 22px 22px; }
.mock-grid i { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; }
.mock-grid .t1 { background: linear-gradient(160deg, #e9d8c4, #b9917a); }
.mock-grid .t2 { background: linear-gradient(200deg, #c9d4d6, #7f9aa3); }
.mock-grid .t3 { background: linear-gradient(170deg, #efe3d3, #cbb08f); }
.mock-grid .t4 { background: linear-gradient(140deg, #d6c1a8, #8c6d57); }
.mock-grid .t5 { background: linear-gradient(190deg, #f1e7da, #d9b99a); }
.mock-grid .t6 { background: linear-gradient(150deg, #b8c4b0, #6f8268); }
.mock-grid .t7 { background: linear-gradient(210deg, #e7cfc0, #b07d68); }
.mock-grid .t8 { background: linear-gradient(165deg, #cfd6dc, #8d9aa6); }
.mock-grid .t9 { background: linear-gradient(180deg, #eadfce, #a88c72); }
.mock-grid .fav::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 14px; height: 14px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.8 8.3 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.1 1.7-1.9 3.2-3.1 5.3-3.1 3.7 0 5.9 3.8 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.8 8.3 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.1 1.7-1.9 3.2-3.1 5.3-3.1 3.7 0 5.9 3.8 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }

/* Sections */
section h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; }
.features, .steps, .pricing, .faq, .closing { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(24px, 3vw, 32px); }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; font-weight: 650; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; color: var(--muted); font-size: 16px; padding-top: 52px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--glow); color: var(--accent-text); font: 700 16px/36px var(--font-display); text-align: center; }
.steps li strong { color: var(--ink); }

/* Pricing */
.switches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.switches[hidden] { display: none; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); }
.switch button { appearance: none; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.switch .save { font-weight: 500; opacity: 0.8; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.plan-featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 20px 50px -30px var(--glow); }
.plan h3 { font-size: 19px; font-weight: 650; }
.plan .storage { color: var(--muted); margin-top: 4px; }
.plan .price { margin-top: 20px; }
.plan .amount { font: 700 36px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 2.6em; }
.plan .btn { margin-top: auto; }
.fine { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 60em; }
.price-table { margin-top: 24px; }

/* FAQ */
.faq dl { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.faq dt { font-weight: 650; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

.closing { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.closing .hero-cta { justify-content: center; }

/* Policies */
.policy { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 80px); }
.policy h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 700; }
.policy .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.policy h2 { font-size: 23px; font-weight: 650; margin-top: 40px; scroll-margin-top: 80px; }
.policy p, .policy ul, .policy .table { margin-top: 14px; }
.policy ul { padding-left: 1.2em; }
.policy li + li { margin-top: 6px; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { font-weight: 650; }

/* 404 */
.notfound { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.notfound h1 { font-size: clamp(34px, 4.4vw, 48px); }
.notfound p { color: var(--muted); margin-top: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot p + p { margin-top: 6px; }
.foot p a { color: inherit; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .faq dl { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links a:not(:last-child) { display: none; }
  .nav .wrap { gap: 16px; }
  .cards, .plans, .steps ol { grid-template-columns: 1fr; }
}
