/* Weft's website. The brand: sand, bark and pōhutukawa; Instrument Serif
   Italic for display, DM Sans for text, DM Mono for small labels. */
:root {
  --sand: #F8EADA; --sand-2: #FBF5EE; --panel: #FFFDFA;
  --bark: #2B2427; --bark-2: #5C4F4B; --muted: #7A6C67;
  --line: #E9DCCB; --line-2: #F1E6D8;
  --red: #D3242A; --red-shade: #832425; --red-bright: #EC4A4E;
  --sky: #2292F7; --bay: #155E9C; --dune: #C2A44A; --cliffs: #4F5069;
  --display: "Instrument Serif", Georgia, serif;
  --text: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { position: relative; margin: 0; background: var(--sand-2); color: var(--bark); font: 17px/1.6 var(--text); }
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bark); color: var(--sand); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ the top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--bark); border-bottom: 1px solid #3B3135; }
.top-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 50px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: 8px; }
.menu a, .signin { text-decoration: none; font-size: 15.5px; color: #DCCDBB; }
.menu a:hover, .signin:hover { color: var(--sand); }
.menu a[aria-current] { color: var(--sand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red-bright); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.signin { margin-left: auto; }
/* Made in NZ, after Book a demo, with a little map of Aotearoa. */
.made-top { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #DCCDBB; padding: 5px 10px 5px 13px; border: 1px solid #463B3F; border-radius: 999px; white-space: nowrap; }
.made-top svg { height: 24px; width: auto; flex: none; }
.made-top-mark { height: 30px; width: auto; display: block; }
.more { display: none; }
@media (max-width: 820px) {
  .menu, .signin, .made-top { display: none; }
  .top-in { gap: 12px; }
  .top .btn-sm { margin-left: auto; }
  .more { display: block; position: relative; }
  .more summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
  .more summary::-webkit-details-marker { display: none; }
  .more summary span { display: block; width: 22px; height: 2px; background: var(--sand); border-radius: 2px; }
  .more nav { position: absolute; right: 0; top: 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; width: 220px; box-shadow: 0 12px 30px rgba(43,36,39,.14); display: grid; }
  .more nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
  .more nav a:hover { background: var(--sand-2); }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #B81E24; }
.btn-line { border-color: var(--bark); color: var(--bark); background: transparent; }
.btn-line:hover { background: var(--bark); color: var(--sand); }
.btn-sand { background: var(--sand); color: var(--bark); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ type */
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bark-2); margin: 0 0 14px; }
.display { font: italic 400 clamp(52px, 8.4vw, 112px)/.95 var(--display); letter-spacing: -.01em; }
h2.title { font: italic 400 clamp(38px, 5.2vw, 64px)/1.02 var(--display); margin-bottom: 18px; }
h3 { font: 600 19px/1.3 var(--text); margin-bottom: 6px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--bark-2); max-width: 40ch; }
.narrow { max-width: 62ch; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--sand); position: relative; overflow: hidden; min-height: clamp(600px, 86vh, 860px); display: flex; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.hero .display { margin-bottom: clamp(40px, 4.6vw, 66px); }   /* room for the red thread under it */
.hero .lede { margin-bottom: 30px; max-width: 46ch; }
/* The threads: one drawing over the whole page, above each section's colour and below its words. The
   coloured threads gather beside the headline; the red one runs under it, down the right-hand margin,
   and finishes at the last "Book a demo". */
.threads { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 1; pointer-events: none; overflow: visible; }
.kiwi-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 6; pointer-events: none; overflow: visible; }
.kiwi-layer .kiwi-main { pointer-events: auto; cursor: grab; touch-action: none; }
.kiwi-layer .kiwi-main.held { cursor: grabbing; }
main > section > .wrap, .foot-in, .foot-base { position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 1; width: 100%; padding: 0 24px 0 clamp(24px, 27vw, 430px); }
.hero-copy .eyebrow, .hero-copy .display, .hero-copy .lede { text-shadow: 0 0 2px var(--sand), 0 0 6px var(--sand), 0 0 10px var(--sand), 0 0 14px var(--sand); }
.hero-copy .btn-line { background: var(--sand); }
.hero-copy .btn-line:hover { background: var(--bark); }
@media (max-width: 820px) { .hero { align-items: flex-start; min-height: 0; padding-bottom: 72px; } .hero-copy { padding: 0 16px; } }
.page-hero { background: var(--sand); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .display { font-size: clamp(48px, 7vw, 92px); margin-bottom: 18px; max-width: 14ch; }

/* -------------------------------------------------------------- sections */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-white { background: var(--panel); }
.band-sand { background: var(--sand); }
.band-bark { background: var(--bark); color: var(--sand); }
.band-bark .eyebrow { color: #CDBBA6; }
.band-bark .lede, .band-bark p { color: #E6D7C5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.big-quote { font: italic 400 clamp(28px, 3.4vw, 40px)/1.2 var(--display); }
.tick { display: block; width: 44px; height: 14px; color: var(--red); margin-bottom: 14px; }
.band-bark .tick { color: var(--red-bright); }

.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; }
.band-white .card { background: var(--sand-2); }
.card p { color: var(--bark-2); font-size: 16px; margin: 0; }
.card a.more-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; text-decoration-color: var(--red); text-underline-offset: 4px; }
.band-bark .card { background: #352D30; border-color: #463B3F; }
.band-bark .card p { color: #DCCDBB; }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.who .card h3 { font: italic 400 30px/1.1 var(--display); margin-bottom: 10px; }

/* The closing call to action. */
.cta { text-align: center; }
.cta .title { max-width: 18ch; margin: 0 auto 14px; }
.cta .lede { margin: 0 auto 28px; }
.cta .btns { justify-content: center; }

/* -------------------------------------------------------- product page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { text-decoration: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.toc a:hover { border-color: var(--bark); }
.feature { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.feature:nth-of-type(even) { background: var(--panel); }
.feature .split { align-items: center; }
.feature:nth-of-type(even) .split > :first-child { order: 2; }
@media (max-width: 860px) { .feature:nth-of-type(even) .split > :first-child { order: 0; } }
.list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; color: var(--bark-2); }
.list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 6px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6'%3E%3Cpath d='M1 3c2 2.4 4 2.4 7 0s5-2.4 7 0' fill='none' stroke='%23D3242A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.list li b { color: var(--bark); font-weight: 600; }
/* Where a screenshot goes: a browser window, waiting for its picture. */
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 50px -24px rgba(43,36,39,.28); }
.shot .bar { height: 30px; background: var(--sand); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #E0CDB6; }
.shot .pic { aspect-ratio: 16 / 10; display: grid; place-content: center; text-align: center; color: var(--muted); font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 20px; background: repeating-linear-gradient(135deg, var(--sand-2) 0 14px, var(--panel) 14px 28px); }
.shot img { display: block; width: 100%; height: auto; }
.shot img[src$="speaker.webp"], .shot img[src$="registration.webp"], .shot img[src$="email.webp"] { max-height: 620px; object-fit: cover; object-position: top; }
/* The app and the door: two phones side by side. */
.phones { margin: 0; display: flex; align-items: flex-start; justify-content: center; gap: clamp(12px, 3vw, 24px); }
.phones img { width: min(46%, 250px); height: auto; border: 7px solid var(--bark); border-radius: 30px; background: var(--bark); box-shadow: 0 24px 50px -24px rgba(43,36,39,.35); }
.phones img + img { margin-top: 48px; }
.shots-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ------------------------------------------------------- security page */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.fact h3 { font: italic 400 28px/1.1 var(--display); margin-bottom: 10px; }
.note { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; color: var(--bark-2); }

/* ---------------------------------------------------------- about page */
.person { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; } }
.photo { width: 220px; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--sand); border: 1px dashed #D9C2A6; display: grid; place-content: center; text-align: center; color: var(--muted); font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 16px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.has-img { display: block; width: 280px; padding: 0; border: 0; box-shadow: 0 24px 50px -24px rgba(43,36,39,.35); }
@media (max-width: 700px) { .photo.has-img { width: min(100%, 340px); } }
.todo { background: #FFF4D6; border-radius: 4px; padding: 0 4px; }

/* -------------------------------------------------------------- the form */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15.5px; }
.field .hint { font-size: 14px; color: var(--muted); margin: -2px 0 0; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--bark); background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--bark); }
.field textarea { min-height: 130px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 12px; padding: 14px 16px; }
.msg.ok { background: #EAF3E6; color: #2F7A3A; }
.msg.bad { background: #F7E0DD; color: var(--red-shade); }
.msg:empty { display: none; }

/* -------------------------------------------------------- the fine print */
.prose { max-width: 70ch; }
.prose h2 { font: italic 400 34px/1.15 var(--display); margin: 44px 0 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.draft { background: #FFF4D6; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 28px; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--bark); color: #DCCDBB; padding: 64px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand img { height: 54px; width: auto; display: block; margin-bottom: 14px; }
.foot-tag { font: italic 400 26px/1.2 var(--display); color: var(--sand); margin-bottom: 6px; }
.foot-brand p:last-child { font-size: 15px; max-width: 34ch; }
/* Made in NZ, with the little map, as in the top bar. */
.made { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #463B3F; border-radius: 999px; padding: 6px 12px 6px 15px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #DCCDBB; margin-top: 6px; }
.made svg { height: 24px; width: auto; flex: none; }
.licensed-mark { display: block; height: 56px; width: auto; margin-top: 14px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav h2 { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #A8988A; margin-bottom: 6px; }
.foot nav a { text-decoration: none; font-size: 15.5px; color: var(--sand); }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #463B3F; font-size: 14px; color: #A8988A; }


/* ------------------------------------------------------- the warp
   Fine upright threads across every section, like the warp on a loom: the
   red thread is the weft that runs across them. Faint on purpose. */
:root { --warp: repeating-linear-gradient(90deg, rgba(43,36,39,.075) 0 1px, transparent 1px 18px); --warp-dark: repeating-linear-gradient(90deg, rgba(248,234,218,.068) 0 1px, transparent 1px 18px); }
.hero, main > .band:not(.band-bark), .page-hero, .feature { background-image: var(--warp); }
.band-bark, .foot { background-image: var(--warp-dark); }

/* Linen: a soft woven grain, for every other section. */
:root {
  --linen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .14 0 0 0 0 .15 0 0 0 .13 -.03'/%3E%3C/filter%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .012' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .14 0 0 0 0 .15 0 0 0 .11 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  --linen-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .92 0 0 0 0 .85 0 0 0 .09 -.02'/%3E%3C/filter%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .012' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .97 0 0 0 0 .92 0 0 0 0 .85 0 0 0 .08 -.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}
/* The cloth: warp, then linen, then warp, down the page, like panels sewn together. */
main > section:nth-of-type(even):not(.band-bark) { background-image: var(--linen); }
main > section.band-bark:nth-of-type(even) { background-image: var(--linen-dark); }


/* The kiwi's fact bubble, and its little scenes on the Thanks and 404 pages. */
.kiwi-fact { position: absolute; z-index: 30; max-width: 260px; background: var(--bark); color: var(--sand); font-size: 14px; line-height: 1.4; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(43,36,39,.25); pointer-events: none; }
.kiwi-fact::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--bark); transform: translateX(-50%) rotate(45deg); }
.kiwi-scene { display: block; width: min(640px, 100%); margin: 6px 0 28px; padding: 0; background: none; border: 0; color: inherit; text-align: left; }
.kiwi-scene svg { display: block; width: 100%; height: auto; }
button.kiwi-scene { cursor: pointer; }
.kiwi-hint { display: block; order: 2; font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
button.kiwi-scene { display: flex; flex-direction: column; }
/* The about page's own words: a comfortable line length, and room after the list. */
.person > div > p, .person .list { max-width: 64ch; }
.person .list { margin: 6px 0 20px; }
/* Every other page's thread (static/site.js): behind the words, drawn in once. */
.page-hero { position: relative; }
.page-hero > .wrap { position: relative; z-index: 1; }
.weft-mark { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.weft-mark path { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; }
.weft-mark.drawing path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; animation: weft-draw 2.6s .3s cubic-bezier(.45,.05,.25,1) forwards; }
.weft-mark.drawing path + path { opacity: 0; animation: weft-show .5s 2.6s forwards; }
@keyframes weft-draw { to { stroke-dashoffset: 0; } }
@keyframes weft-show { to { opacity: 1; } }
.page-hero .display { margin-bottom: 40px; }
