/* The homepage's Features section: still pictures, no motion. Each feature
 * is a short title and a line or two on the left, and one calm panel on the
 * right holding a small, sharp piece of HumDocs. The panels are paper, the
 * way HumDocs' dark cards really sit: over a white Doc. Four smaller features
 * follow in a grid. Drawn in HTML and CSS, so it stays crisp at any size.
 */
.ft {
  --ft-paper: #e8e5df;
  --ft-ink: #0a0a0a;
  --ft-line: #282828;
  --ft-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ft-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.ft-copy h3,
.ft-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.ft-copy p,
.ft-card > p {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text3);
}
.ft-copy p b { color: var(--text2); font-weight: 500; }
.ft .hm-pro { vertical-align: 0; margin-left: 0; }

/* The panel: warm paper with a little grain and soft light. */
.ft-panel {
  position: relative;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--ft-paper);
}
.ft-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 30% 20%, #f4f2ee, transparent 70%),
    radial-gradient(50% 50% at 85% 90%, #dcd8d0, transparent 70%);
}
.ft-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--ft-grain);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ft-panel > * { position: relative; z-index: 1; zoom: 1.14; }

/* HumDocs' own pieces, as they look in the extension. */
.ft-ext {
  background: var(--ft-ink);
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #f2f2f2;
  font-family: var(--ui-sans);
}
.ft-lbl {
  margin: 0;
  font: 600 9px var(--ui-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8e8e;
}
.ft-time { width: 300px; padding: 14px; }
.ft-dur { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 7px; border: 1px solid var(--ft-line); border-radius: 10px; overflow: hidden; background: #111; }
.ft-dur div { padding: 9px 0 7px; text-align: center; border-left: 1px solid var(--ft-line); font: 600 22px var(--ui-mono); }
.ft-dur div:first-child { border-left: 0; }
.ft-dur small { display: block; margin-top: 3px; font: 500 9px var(--ui-sans); color: #8e8e8e; }
.ft-short { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ft-short span { padding: 6px 0; text-align: center; border: 1px solid var(--ft-line); border-radius: 8px; background: #111; font: 500 10.5px var(--ui-sans); color: #8e8e8e; }
.ft-short span.on { color: var(--ok); border-color: var(--ok-bd); background: var(--ok-bg); }
.ft-done { margin: 9px 0 0; text-align: center; font: 400 11px var(--ui-sans); color: #b8b8b8; }
.ft-done b { color: #f2f2f2; font-weight: 600; }

.ft-doc {
  width: 440px;
  max-width: calc(100vw - 80px);
  padding: 22px 26px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.14);
  font: 15px/1.7 Arial, Helvetica, sans-serif;
  color: #202124;
}
.ft-typo { padding: 0 2px; border-radius: 3px; background: #fde2e1; color: #b3261e; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ft-fix { padding: 0 2px; border-radius: 3px; background: #dcf5e8; color: #11643d; }
.ft-car { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -3px; background: #1a73e8; }

.ft-ref { width: 280px; padding: 12px 14px 14px; }
.ft-ref .ft-lbl { color: #5b6068; }
.ft-ref pre { margin: 9px 0 0; white-space: pre-wrap; font: 11px/1.6 var(--ui-mono); color: #5b6068; }
.ft-ref pre b { color: #f0f0f0; font-weight: 400; }
.ft-ref i { display: inline-block; width: 2px; height: 1.1em; vertical-align: -2px; background: #8fd4b2; }

.ft-pair { display: flex; align-items: center; gap: 18px; }
/* Type later, the page in the popup: when, the day, the time, the button. */
.ft-later { width: 260px; padding: 12px; }
.ft-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--ft-line); border-radius: 10px; background: #111; }
.ft-seg span { padding: 6px 0; text-align: center; border-radius: 8px; font: 600 10.5px var(--ui-sans); color: #b8b8b8; }
.ft-seg span.on { background: #222; color: #f2f2f2; box-shadow: 0 0 0 1px #363636; }
.ft-days { display: flex; gap: 6px; margin-top: 8px; }
.ft-days span { flex: 1; padding: 6px 0; text-align: center; border: 1px solid var(--ft-line); border-radius: 10px; background: #111; font: 600 10.5px var(--ui-sans); color: #b8b8b8; }
.ft-days span.on { border-color: var(--ok-bd); background: var(--ok-bg); color: var(--ok); }
.ft-clock div { padding: 6px 0 5px; font-size: 17px; }
.ft-golater { margin-top: 9px; padding: 9px; text-align: center; border: 1px solid rgba(62, 207, 142, 0.4); border-radius: 10px; background: #111; color: var(--ok); font: 600 12px var(--ui-sans); }
.ft-menu { width: 250px; padding: 6px 0; background: #161616; border-color: #363636; border-radius: 12px; }
.ft-menu .ft-lbl { padding: 6px 13px; }
.ft-mi { display: flex; justify-content: space-between; padding: 8px 13px; font: 500 12.5px var(--ui-sans); }
.ft-mi span { font: 500 11px var(--ui-mono); color: #8e8e8e; }
.ft-mi.hl { background: #222; }
.ft-msep { height: 1px; margin: 5px 0; background: #282828; }
.ft-sched { width: 200px; padding: 13px 14px 12px; text-align: center; }
.ft-sched-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font: 600 11px var(--ui-sans); }
.ft-sched-top i { font: 500 9px var(--ui-mono); font-style: normal; color: #7dd3fc; }
.ft-sched-t { margin: 0; font: 600 24px var(--ui-mono); letter-spacing: -1px; }
.ft-sched-s { margin: 3px 0 8px; font: 500 11px var(--ui-sans); color: #9ca3af; }
.ft-sched-r { display: flex; align-items: center; gap: 7px; }
.ft-sched-r b { font: 400 13px/1 var(--ui-sans); color: #6b7078; }
.ft-sched-n { margin: 0; font: 400 10px/1.45 var(--ui-sans); color: #8e8e8e; }

/* Four smaller features. */
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: clamp(8px, 2vw, 24px); }
.ft-card .ft-panel { height: 250px; }
.ft-card .ft-panel > * { zoom: 1.06; }
.ft-card h3 { margin: 20px 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.ft-card > p { max-width: 30rem; font-size: 0.95rem; line-height: 1.6; }
/* The break card, as it shows over the Doc during a break. */
.ft-break { width: 232px; padding: 16px 16px 14px; text-align: center; border-color: #1e3a4f; box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 18px 40px rgba(0, 0, 0, 0.28); }
.ft-break-k { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font: 600 9.5px var(--ui-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.ft-break-t { margin: 9px 0 6px; font: 600 34px/1 var(--ui-mono); letter-spacing: -1.6px; color: #e0f2fe; }
.ft-break-s { margin: 0; font: 500 8.5px var(--ui-mono); letter-spacing: 0.5px; text-transform: uppercase; color: #64748b; }
.ft-break-row { display: flex; gap: 8px; margin-top: 13px; }
.ft-break-p { flex: 0 0 34px; height: 32px; display: grid; place-items: center; border: 1px solid #2a2a2a; border-radius: 9px; background: #111; color: #bae6fd; }
.ft-break-end { flex: 1; display: grid; place-items: center; border: 1px solid rgba(56, 189, 248, 0.32); border-radius: 9px; background: #111; color: #e0f2fe; font: 600 11px var(--ui-sans); }
.ft-resume { display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px; }
.ft-resume-top { display: flex; justify-content: space-between; margin: 0; font: 600 12px var(--ui-sans); }
.ft-resume-top span { font: 500 10.5px var(--ui-mono); color: #8e8e8e; }
.ft-bar { height: 4px; margin-top: 9px; border-radius: 3px; background: #1f1f1f; overflow: hidden; }
.ft-bar i { display: block; width: 62%; height: 100%; background: var(--ok); }
.ft-go { padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(62, 207, 142, 0.4); color: var(--ok); font: 600 12px var(--ui-sans); }
.ft-slide { width: 330px; aspect-ratio: 16 / 9; padding: 26px 28px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.14); }
/* A slide: the title as it is, and the body box selected, a paragraph going in. */
.ft-slide { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; }
.ft-slide-title { margin: 0; padding: 0 9px; font: 700 18px/1.25 Arial, Helvetica, sans-serif; color: #202124; }
.ft-slide-body { flex: 1; padding: 7px 9px; border: 1.5px solid #4285f4; border-radius: 2px; font: 11.5px/1.5 Arial, Helvetica, sans-serif; color: #3c4043; }
.ft-lock { display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 18px; }
.ft-lock svg { flex-shrink: 0; color: var(--ok); }
.ft-lock b { display: block; font: 600 13px var(--ui-sans); }
.ft-lock span { font: 400 11.5px var(--ui-sans); color: #8e8e8e; }

/* Phones and narrow windows: the words, then the picture, one under the other. */
@media (max-width: 860px) {
  .ft-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ft-copy h3 { margin-top: 0; }
  .ft-panel { height: 280px; border-radius: 20px; }
  .ft-panel > * { zoom: 0.92; }
  .ft-pair { flex-direction: column; gap: 10px; }
  .ft-pair .ft-sched { display: none; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ft-card .ft-panel { height: 220px; }
  .ft-card .ft-panel > * { zoom: 0.92; }
}
@media (max-width: 420px) {
  .ft-panel > *, .ft-card .ft-panel > * { zoom: 0.8; }
}
